Mitigating the attribute proliferation - attribute inference for functions
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 18 03:30:33 PDT 2015
On Friday, 17 July 2015 at 17:36:08 UTC, Martin Nowak wrote:
> gettime -> impure
Convert UTC time to local time -> pure?
> random -> impure
People expressed concerns about reproducibility of PRNG output,
which among other things requires them to be pure.
> format string -> pure
Doesn't it depend on locale? Though that dependency is probably
unimportant.
> Using global state in a non-obvious way is an indicator for bad
> code.
Convert relative path to absolute path -> pure? thread-safe? bad
design?
Just nitpicking, but anyway.
More information about the Digitalmars-d
mailing list