2 ms·
Well at least you shouldn’t be able to actually dereference a nil, right?
by koakuma-chan 1y ago
Well at least you shouldn’t be able to actually dereference a nil, right?
- shawabawa3 1y agoSadly, and imo almost unforgivably in such a modern language, no
- koakuma-chan 1y agofwiw Go is simple, can be easily translated from TypeScript thanks to how similar it is, and has a GC, so you don’t have to learn what the hell a borrow checker is
- Mond_ 1y agoYou'll get a runtime panic. Hey, it's better than lurking undefined behavior and data corruption issues! Doesn't keep your binary from crashing, though.