Ranges and @safe

Per Nordlöw per.nordlow at gmail.com
Mon Sep 23 07:09:41 UTC 2019

On Monday, 23 September 2019 at 00:33:02 UTC, SrMordred wrote:
> I think that what i wanted was a @reallySafe flag :P

You should always strive to process ranges as sets of ordered 
data that are potentially empty. In most cases you can prevent 
the use of the member empty() by instead using `foreach` or 
range-based algorithms.

More information about the Digitalmars-d mailing list