4 ms·
What is the point of Go without garbage collection and goroutines? You can use C.
by DeathArrow 3y ago
What is the point of Go without garbage collection and goroutines? You can use C.
- debatem1 3y agoGolang is pretty good, but you can't really count on gc and frankly goroutines are as much problem as solution. Nice to see a C with useful types and builtins.
- JodieBenitez 3y agoCan you expand on why/what situation you can't count on GC and why goroutines are a problem ?
- Cthulhu_ 3y agoGo has 25 keywords, C has 32; it's an easier language. Even without the garbage collection, Go's memory management is easier and safer (memory is automatically zeroed, no pointer arithmetic). Go's toolchain is portable and straightforward. TL;DR it keeps having advantages over C even if you takeaway GC and goroutines.
- actionfromafar 3y agoThat is like saying what is the point of Pascal, you can use C. Well, one is a (dearly loved by me) footgun.
- mst 3y agoThey appear to be aiming for Go without -compulsory- garbage collection and goroutines. Also go has a -lot- fewer sharp edges than C. It's an (extremely) ambitious goal, and skepticism is warranted, but I think their desire for such a thing to exist does actually make sense.