33 ms·
No. They should have used LLVM. Go is a crippled language because it lacks generics and generalized higher-order types. The stated reasons for this are to make
by bitwize 8y ago
No. They should have used LLVM.
Go is a crippled language because it lacks generics and generalized higher-order types. The stated reasons for this are to make the compiler easier to implement. Maybe they wouldn't have had such implementation difficulties if they had just gone with the compiler backend the industry has standardized on, freeing up developer resources to make Go a language suitable for big development tasks and competitive with C++, C#, etc.
- cdoxsey 8y agoGenerics are a design problem not an implementation problem. If folks agreed on a design finding resources to get them added wouldn't be hard. Not sure what you're trying to imply with your last sentence, but Go is used by many companies large and small for big development tasks. I work for a company where most of the backend systems are written in Go.
- ovao 8y agoThat's not an accurate summary of the reasoning. It's not just the complexity it adds to the compiler, but to the type system in general, and to the complexity it may bring to user code. The Go team is not against adding generics, and there have been proposals for them. They have simply not landed on a proposal that they feel is a strong fit for the language.