Hi! I have a module that depends on `--experimental:views` and would like to be
able to reliably detect and fail if `views` are not enabled. I currently do:
when not compiles(block:
var x: openArray[int]):
{.fatal: "--experimental:views is required for this module to work" .}
Run
I would prefer to write something like:
when when compileOption("experimental", "views"):
{.fatal: "--experimental:views is required for this module to work" .}
# Or
when when compileOption("experimental:views"):
{.fatal: "--experimental:views is required for this module to work" .}
Run
but the compiler currently says `Error: invalid command line option:
'--experimental'` (Nim Compiler Version 1.7.1). Any suggestions?
Thank you.