Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lupire
1y ago
0 comments
Save
Share
Go has nullable types! We want non-nullable types!
0 comments
1 comments · 1 top-level
top
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