Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
catnaroek
9y ago
0 comments
Save
Share
You can call a method on a null value in Java and C#. It's perfectly defined behavior: throwing a NullPointerException.
0 comments
1 comments · 1 top-level
top
newest
oldest
Vendan
9y ago
yes, and it's a completely different behavior then Go, where it's perfectly defined as well: you call that method with a nil pointer as the receiver. Please don't act like those 2 behaviors are anywhere near similar.
j
/
k
navigate · click thread line to collapse