3 ms·
I think lack of classes is highly desirable. So much enterprise code is poorly put together abstractions. I think go needs some more functional aspects, like i
by wanderlust123 11mo ago
I think lack of classes is highly desirable. So much enterprise code is poorly put together abstractions.
I think go needs some more functional aspects, like iterators and result type/pattern matching.
- robryan 11mo agoGo does have iterators: https://pkg.go.dev/iter https://pkg.go.dev/iter
- wanderlust123 11mo agoThanks! Did not see this until your message, looking forward to make use of this
- nicodjimenez 11mo agoThe solution to bad abstractions it not to make it very difficult to create abstractions at all. For systems code I think it's fine but for application code you probably want some abstractions or else it's very hard to scale a codebase.
- jen20 11mo agoIt’s really not though. Plenty of systems are built in Go, Erlang etc that do not have the architectual monstrosities which commonly show up in object-oriented code, especially when a Java or C# expert beginner has been let loose.