|
|
|
|
|
by kuschku
2934 days ago
|
|
I've used C and Go quite a bit, and I find it a horror to write. I end up duplicating tons of code - the exact same code copied hundreds of times across the codebase, with every time slightly different changes made to it. How do you do custom data structures that need to parametrize over multiple types without duplication in C or Go? How do you do sane error handling without 90% of your code being if (...) { // handle error } or if err != nil { return err } ? I mean, just read https://git.kuschku.de/justJanne/statsbot-frontend/blob/mast... as example. (It's a quickly hacked-together project I wrote in about 10h) |
|