Browse by Tags

All Tags » Evil Code (RSS)

API design: choosing between non-ideal options

So, UnconstrainedMelody is coming on quite nicely. It now has quite a few useful options for flags enums, "normal enums" and delegates. However, there are two conflicting limitations which leave a couple of options. (Other related answers on...
Posted by skeet | 10 comment(s)
Filed under: , ,

Evil Code of the Day: variance and overloading

(Note that this kind of breakage was mentioned a long time ago in Eric Lippert's blog , although not in this exact form.) Whenever a conversion becomes available where it wasn't before, overload resolution can change its behaviour. From C# 1 to...
Posted by skeet | 6 comment(s)
Filed under: , ,