2 ms·
There's a big difference between Python's types and and Go's: in Python they're only there to check correctness while in Go they're there to tell the compiler h
by lolinder 5y ago
There's a big difference between Python's types and and Go's: in Python they're only there to check correctness while in Go they're there to tell the compiler how to lay out the machine code. If the compiler ignored types in Go it wouldn't just throw an error message at runtime, the behavior would be completely undefined.
- gorgoiler 5y agoThat’s interesting. The hacky-developer option I’m after is the ability to cull pieces of code if they do not type check, I guess.