|
|
|
|
|
by hnlmorg
469 days ago
|
|
Nil pointers aren’t the same thing as optional types in python. You can achieve the same thing as optional types in Go using ‘…any’ and the standard library has made use of that pattern since the very first release of Go. Nil pointers in Go are a completely different problem and there isn’t really a direct comparison in dynamic languages like Python nor Typescript because they use references rather than pointers. |
|