Poor, confused C# compiler
Posted by: Charles Young,
on 22 Jan 2013 |
View original | Bookmarked: 0 time(s)
The C# compiler is a pretty good thing, but it has limitations. One limitation that has given me a headache this evening is its inability to guard against cycles in structs. As I learn to think and programme in a more functional style, I find that I am beginning to rely more and more on structs to pass data. This is natural when programming in the functional style, but structs can be damned awkward blighters.Here is a classic gotcha. The following code won't compile, and in this case, the compiler...