On 2/17/2014 10:54 AM, Andrei Alexandrescu wrote:
On 2/17/14, 7:42 AM, Daniel Murphy wrote:

Exactly, foreach is a new, better language construct, but we didn't
butcher for.  I would love to see a nice solid proposal for 'match'.

A "match" statement that figures type patterns and introduce names and
all that - that might be more interesting (though being far from a game
changer). But that's not quite what has been proposed in this thread.


Although I've said it before, I'd love to see Nemerle's match in D:

https://github.com/rsdn/nemerle/wiki/Quick-guide#wiki-Pattern_Matching

Especially together with its great algebraic types (Phobos's Algebraic still needs some beefing up, unfortunately).

Reply via email to