Origins of the D Programming Language
Paolo Invernizzi
paolo.invernizzi at gmail.com
Sat Dec 1 17:32:44 UTC 2018
On Saturday, 1 December 2018 at 16:07:28 UTC, H. S. Teoh wrote:
> On Sat, Dec 01, 2018 at 11:02:51AM +0000, Kagamin via
> Digitalmars-d wrote: [...]
>> [...]
>
> I think you misunderstand the intent here. Purity by default
> doesn't mean everything must be pure with no way out except
> awkward periphrases like monads. It means you opt out of
> purity by specifying impure, rather than start with impure and
> opt into purity by specifying pure. I.e., an undecorated
> function will be implicitly pure, but if you want impure code,
> you add an `impure` attribute to the function.
>
> [...]
And maybe, class methods final by default?
:-P
P
More information about the Digitalmars-d
mailing list