-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add comparison of null/nil safety and syntax #36
Add comparison of null/nil safety and syntax #36
Conversation
452e1cc
to
df02eae
Compare
By the way, regarding this part of my description of Nim’s null handling:
I plan to make a PR for Nim to move the In that potential future update to this PR, I will update the link to |
thanks for the PR! just click |
ping @roryokane also see this:
which echos what I was thinking as well, now that seq/string can't be nil |
I researched these features because I was wondering if either language had a solution like Rust’s `Option`. Neither language does. I decided the comparison result was “?” because D is better by default because more of its built-in types are non-nullable, but Nim can be made safer than D if you put in the work of redefining everything using the experimental `not nil` type annotation.
df02eae
to
6d23098
Compare
6d23098
to
c369607
Compare
actually, also super thanks! merging! |
I researched these features because I was wondering if either language had a solution like Rust’s
Option
. Neither language does.I decided the comparison result was “?” because D is better by default because more of its built-in types are non-nullable, but Nim can be made safer than D if you put in the work of redefining everything using the experimental
not nil
type annotation.