I recently stumbled over the D programming Language and i really like it. You can programm really high-level while having full Hardware access like in C.
coming from a rather functional background (Haskell,scala) I´m searching for a way to pattern match in D, but i found nothing on http://www.digitalmars.com/d/. In Haskell pattern matching is supported by the language itself. In Scala it´s achieved by case classes or extractors(normal objects with an unapply method).
Is it possible to do this in D?
the receive method in std.concurrency which is used to do concurrency in an actor-style like in erlang and scala takes a bunch of functions and pattern matheses on these. But i think it´s not as flexible as in other languages. Can you uses guards ? Can you extract the Object´s contents like it´s possible in scala ?