Killing the comma operator

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed May 11 05:58:14 PDT 2016


On 2016-05-11 11:39, ZombineDev wrote:

> Macros... well I think a solution like Jonathan Blow's Jai CTFE inside
> the compiler would be much more powerful and easy to integrate into the
> language. But it will require heavy refactoring of DMDFE, but this is a
> good idea regardless.

Macros are not hard to implement, at least not the kinds that Scala is 
using.

> Tuples and some sort of pattern matching for values (like is() is for
> types) are a total must have. Though if we get rid of the comma
> operator, it may happen earlier than D3. From watching D's evolution
> from last 2-3 years I think that there may never be a D3. Just cool new
> features that every other release, and graceful deprecation of old
> misfeatures.

Pattern matching can be implemented as a library. That syntax will not 
be very nice though. But perhaps with macros ;)

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list