null analysis with control flow

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 21 07:05:42 PDT 2016


On 09/21/2016 09:10 AM, w0rp wrote:
>
> 1. Most languages (including D) do not support pattern matching. If
> pattern matching was added, it would be totally alien to any programmers
> coming from C, Java, JavaScript, Python, etc. This means this method of
> handling null might not be adopted.

I've said it before, and I'm going to keep saying it: Nemerle's 
Algebraic's and pattern matching are freaking awesome and I wish D would 
outright copy it (instead of mucking with the current library solutions).

THIS is how to do Algebraics:
https://github.com/rsdn/nemerle/wiki/Grok-Variants-and-matching



More information about the Digitalmars-d mailing list