cost of @safe and safety inference

monarch_dodra monarchdodra at gmail.com
Mon Mar 11 08:43:49 PDT 2013


On Monday, 11 March 2013 at 15:20:05 UTC, deadalnix wrote:
> If anything, safety must be opt-out. I conclude the exact 
> opposite : function must be @safe by default or inferred as 
> templates.

That would have been nice too,  but too crippling as is. If and 
when we have all those sweet non-escapable references and 
whatnot, then maybe we could set it as optout by default via 
compiler switch?

Having "blocks tag-able with attributes" would help too. I wish 
more people would push for that. It would be an awesome feature, 
which I dare say would be as useful as the scope block.


More information about the Digitalmars-d mailing list