4 ms·
> 1. Go with a better type system. A compiled language, that has sum types, no-nil, and generics. I was looking for something like that and eventually found Cr
by Horusiath 7mo ago
> 1. Go with a better type system. A compiled language, that has sum types, no-nil, and generics.
I was looking for something like that and eventually found Crystal (https://crystal-lang.org https://crystal-lang.org) as a closest match: LLVM compiled, strong static typing with explicit nulls and very good type inference, stackfull coroutines, channels etc.
- brabel 7mo agoCrystal is a typed Ruby. The closer to Go language would probably be Odin.
- mastermage 7mo agoOdin is more of an alternative C than Go. V is inspired by Go has like nearly the same syntax as Go and alot of Goodies. Like Error Types, Sum Types and more.
- pansa2 7mo agoCrystal’s syntax is similar to Ruby’s, but AFAIK the similarity more-or-less ends there.
- kbolino 7mo agoGo does not use LLVM at all and never has. It uses its own compiler and its own (quirky) assembler. Of course, this does not matter to most people, but LLVM compilation can be both a blessing (good interop with C/FFI) and a curse (changes to LLVM internals causing issues for languages other than C/C++).
- deleted 7mo ago[deleted]