The other day I went to write an example for the channels module. One of the things I noticed right away is that rather than using an option, channels returns a tuple: dataAvailable: bool, msg:....
It seems like we should change this and deprecate the proc s that use this option-like construct.
As a broader question, do you think that Nim should be trying to use Option[T] throughout the stdlib overall? It seems to me that that would be more orthogonal and self-consistent.
Cheers
do you think that Nim should be trying to use Option[T] throughout the stdlib overall? It seems to me that that would be more orthogonal and self-consistent.
I believe that's the plan going forward.. Nim 0.19+.