Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
lupire
1y ago
0 comments
Share
Go has nullable types! We want non-nullable types!
0 comments
default
newest
oldest
chuckadams
1y ago
I blame C# for the confusion. Think of it this way: the ability to explicitly express a type Foo|null implies the existence of a non-nullable Foo as well. IOW it’s shorthand for “nullable and non-nullable types”.
j
/
k
navigate · click thread line to collapse