3 ms·
Go is really simple. Took me a while to get that. The issue is it forces you to deal with things that need to be dealt with rather than leave them as an excepti
by hughrr 5y ago
Go is really simple. Took me a while to get that. The issue is it forces you to deal with things that need to be dealt with rather than leave them as an exceptional case (pun intended).
- masklinn 5y ago> The issue is it forces you to deal with things that need to be dealt with Except for all the times where it does not, which is most of them. It won’t force you to deal with errors (generally, it will in some cases as a side-effect of erroring on unused variable but there’s plenty of case where that’s going to be suppressed or irrelevant), it won’t force you to deal with nullable pointers (which is all of them), it won’t force you to deal with unsynchronised shared mutables (which is easy to do unwittingly, just send a map or a pointer over a channel), it won’t force you to lock the right mutex before manipulating those when you’ve thought of having one, it won’t force you to properly use debatable APIs like `append`, it won’t force you to deal with the possibility of typed nils, etc… It will force you to remove or explicitly silence unused import though, because, you know, that’s what’s important.