3 ms·
That's true and I wouldn't use the Option type for that either. There is a switch that warns about variables that are not initialized explicitly (including the
by Araq 8y ago
That's true and I wouldn't use the Option type for that either. There is a switch that warns about variables that are not initialized explicitly (including the 'result' variable) and an RFC to make this switch non-optional. https://github.com/nim-lang/Nim/issues/7917 https://github.com/nim-lang/Nim/issues/7917