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

Namespace via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 13 12:18:10 PDT 2015


On Friday, 13 March 2015 at 19:11:59 UTC, weaselcat wrote:
> On Friday, 13 March 2015 at 19:03:29 UTC, Namespace wrote:
>> On Friday, 13 March 2015 at 19:01:08 UTC, 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?
>>
>> There is no way to mark functions impure, mutable or virtual. 
>> ;)
>
> Is there a reason for this?
> I currently put @safe: at the top of all of my D files, and use 
> @trusted/@system as needed(i.e, barely ever except for IO.) I'm 
> not sure if it's good practice but I prefer it.

As always: there was many discussions and nothing was 
decided/done.
The nearest thing we had (and I'm so proud that the suggestion 
comes from me :P) was: final(false), pure(false) etc.


More information about the Digitalmars-d mailing list