> when (compiles do: import std/sha1):

Is that still the best option?

And what is about the "do:"? Secret keyword or just a block? And why is block 
needed?

See <https://nim-lang.org/docs/system.html#compiles%2Cuntyped>

Reply via email to