Expressive If and Case …
[Estimated Reading Time: 2 minutes] A quick post on a small but hugely useful little language feature in Oxygene… if expressions.
[Estimated Reading Time: 2 minutes] A quick post on a small but hugely useful little language feature in Oxygene… if expressions.
[Estimated Reading Time: 3 minutes] I’m afraid I have been guilty of editorialising on StackOverflow. It was sheer laziness really. A question prompted me to respond by sharing a personal preference and instead of “context switching” to my blog I posted an answer that even at the time I acknowledged was not in fact an answer (though as transgression go I have to say I have seen far worse, but, that’s no excuse). So, with (further) apologies to StackOverflow, I have withdrawn that answer and instead present that editorial here, a more appropriate forum.
[Estimated Reading Time: < 1 minutes] Lars Fosdal responded to my previous post suggesting a way of implementing string support in a case-like construct (but not actually a case statement) using generics and anonymous methods. All very clever, but way, way too complicated and – if you don’t mind me saying so – as ugly as sin into the bargain (imho – ymmv). For simple cases [sic], it is actually relatively straightforward to uses strings in a case statement.
[Estimated Reading Time: 3 minutes] Eric Grange (resurrector of the increasingly interesting looking DWS project) recently posted about a new idea he has had for the DWS engine, which in turn gave me an idea, or rather, prompted me to come up with what I think may be a new spin on an old one.