Nim
Nim copied to clipboard
support cstring in `case`
closes https://github.com/nim-lang/RFCs/issues/350
Again a bit sloppy, but should work.
Can add experimental switch or whatever if desired.
Does it works when the cstring
is nil
?.
I thought it would be complicated to make it work but it's not
This is awesome! Since this will be in version 2.0 it doesn't need an experimental switch. It does need a changelog entry though and documentation updates.
Done
Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from a95b6391fd353074daf2dbfed4d73e8d57f314ca
Hint: mm: orc; threads: on; opt: speed; options: -d:release 163966 lines; 15.268s; 842.176MiB peakmem