3 ms·
speaking from personal experience, i selected go for a project because it is high perf, automatically uses all cores w/ goroutines, and is type checked
by tehjoker 3y ago
speaking from personal experience, i selected go for a project because it is high perf, automatically uses all cores w/ goroutines, and is type checked
- triyambakam 3y ago> type checked Kinda...
- 65a 3y agoIt is a type safe language, not exactly sure what you're hinting at here.
- madeofpalk 3y agoThis entire post is a big workaround go's insufficient type system because nil is not modelled in it. That's not safe.
- 65a 3y agoI agree I probably should have said strongly typed instead of safe, as yes, if you dereference a pointer to nil you are going to crash. That being said, I do think "possesses an untyped nil" is a pretty far cry from "not type checked at all". It's certainly much safer than languages like C or C++ which allow type punning, or Java, where both nullables and runtime exceptions associated with types are generally a more pernicious problem.