My AMA is on!
bearophile
bearophileHUGS at lycos.com
Wed Oct 2 12:54:25 PDT 2013
Andrei Alexandrescu:
> http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/
The IamA is going well.
Regarding this answer of yours:
>Of the usual suspects present in FP languages, D notably misses
>pattern matching. It is in tension with OOP-style (first match
>vs. best match), and I'm not sure whether or not it's a
>fundamental feature of functional style. There are no plans to
>add such at this time.<
Adding a full pattern matching to D seems a bit much, but I think
there are means to significantly increase the power of the D
"final switch" with a limited amount of added complexity. The
idea is to support switching on structs, something like the
"unapply" standard struct/class method copied from Scala and
perhaps variable binding.
Bye,
bearophile
More information about the Digitalmars-d
mailing list