A few notes on choosing between Go and D for a quick project

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 13 22:57:18 PDT 2015


On Fri, Mar 13, 2015 at 08:12:15PM -0700, Andrei Alexandrescu via Digitalmars-d wrote:
> On 3/13/15 6:32 PM, H. S. Teoh via Digitalmars-d wrote:
> >On Fri, Mar 13, 2015 at 04:14:30PM -0700, Andrei Alexandrescu via Digitalmars-d wrote:
> >>On 3/13/15 3:14 PM, Walter Bright wrote:
> >>>On 3/13/2015 12:01 PM, weaselcat wrote:
> >>>>On Friday, 13 March 2015 at 18:55:18 UTC, Walter Bright wrote:
> >>>>>On 3/13/2015 3:34 AM, bearophile wrote:
> >>>>>>"Strict mode" is a D2 with immutable+ at safe+pure by default,
> >>>>>
> >>>>>Note that you can get this largely by starting a module with the
> >>>>>following:
> >>>>>
> >>>>>   immutable @safe pure:
> >>>>>
> >>>>
> >>>>As far as I'm aware, there's no way to mark functions impure this
> >>>>way other than lexical location. Am I incorrect?
> >>>
> >>>You are correct, which is why D also supports:
> >>>
> >>>    immutable @safe pure {
> >>>       ... nice declarations ...
> >>>    }
> >>>
> >>>    ... naughty declarations ...
> >>
> >>The bottom line is we need a way to undo attributes. -- Andrei
> >
> >Which people have been clamoring for, for a long time now.
> 
> That's why we need it! :o) -- Andrei

Yes, and it's about time it finally got acknowledged! :-P


T

-- 
Notwithstanding the eloquent discontent that you have just respectfully expressed at length against my verbal capabilities, I am afraid that I must unfortunately bring it to your attention that I am, in fact, NOT verbose.


More information about the Digitalmars-d mailing list