www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - My AMA is on!

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/

Ask, comment, upvote!

Andrei
Oct 02 2013
next sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
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
Oct 02 2013
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 10/2/2013 9:16 AM, Andrei Alexandrescu wrote:
 http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/


 Ask, comment, upvote!

Congrats! Looks like it was a huge success.
Oct 02 2013
prev sibling parent Bruno Medeiros <brunodomedeiros+dng gmail.com> writes:
On 02/10/2013 17:16, Andrei Alexandrescu wrote:
 http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/


 Ask, comment, upvote!

 Andrei

"The real question is: did you try llvm?" LOOOOOOOOOOL :D -- Bruno Medeiros - Software Engineer
Oct 08 2013