on 11/22/2012 10:27 AM
I was thinking about how nice you have it in some languages where you can do a case statement for types. Thing is, we have a lot of compiler goodness in C# already. By being explicit about the type and using type inference we can have a generic Case statement of a maximum length (depends on how many if else you think are ok to add). I find it pretty sweet to write code like this: TypeMatch.Case(exception,   (GnarlyType e) => { HandleGnarly(e); },   (FuncyType e1) => { HandleFunky(e1); },   () => { Explo[...]
>> Read the full article on assertfail.gewalli.se
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper