new, pattern matching, scoping

bearophile bearophileHUGS at lycos.com
Tue Mar 4 05:35:35 PST 2008


A nice article that shows why D may be better without the "new" statement (and Python just uses () to instantiate, but D may need a finer control during struct/object creation):
http://www.scs.stanford.edu/~dm/home/papers/c++-new.html


Pattern matching, like in Mathematica (very refined), OCaml (faster), Haskell (simple), or OMeta (powerful) is probably useful inside D too, this is a page from Haskell docs:
http://www.haskell.org/tutorial/patterns.html


With the closures of D 2.x, D may need to improve its scoping rules to something more clean:
http://tratt.net/laurie/tech_articles/articles/designing_sane_scoping_rules

Bye,
bearophile



More information about the Digitalmars-d mailing list