const?? When and why? This is ugly!

Christopher Wright dhasenan at gmail.com
Tue Mar 3 04:26:50 PST 2009


Andrei Alexandrescu wrote:
> grauzone wrote:
>>>> Sometimes, you have to leave the more spiffy features to languages 
>>>> like Erlang or Haskell which are suited better for this. For 
>>>> example, Erlang doesn't share any state by default, and in Haskell, 
>>>> everything is immutable. But they use very special mechanisms to 
>>>> make up for the problems caused by this, and that's why you can't 
>>>> just pick the cherries: it won't fit, it will feel unnatural, and 
>>>> everything will be a mess. It's a good idea to copy good features 
>>>> from other languages, but never forget where you come from.
>>>
>>> We plan to add the necessary mechanisms.
>>
>> What mechanisms will these be? I'm sure others are curious too.
> 
> Still under discussion. We're considering for example message-passing 
> queues a la Erlang.
> 
> Andrei

A library-level feature, I hope, but I'd be quite interested in seeing 
how this would be implemented as a pure function.



More information about the Digitalmars-d mailing list