On 2009-11-05 13:33:09 -0500, Walter Bright <[email protected]> said:

Safety seems more and more to be a characteristic of a function, rather than a module or command line switch. To that end, I propose two new attributes:

@safe
@trusted

Looks like a good proposal.

That said, since most functions are probably going to be safe, wouldn't it be better to remove @safe and replace it by its counterpart: an @unsafe attribute? This would make things safe by default, which is undoubtedly safer, and avoid the unnecessary clutter of @safe annotations everywhere.

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to