5 ms·
There is a market for a language like Rust but with garbage collection and reflection. There is OCaml, but it's not for the modern developer. Go with generics i
by kubb 5y ago
There is a market for a language like Rust but with garbage collection and reflection. There is OCaml, but it's not for the modern developer. Go with generics is the closest thing to that which is getting some use.
- jpgvm 5y agoI think so too but I think the languages that fit the bill are Kotlin and Swift. Both modern syntax, great generics w/GC and ARC respectively. Go w/generics falls very short IMO, expressibility, type safety and poor null handling all rule it out as a reasonable stand-in for Rust.
- echelon 5y agoSwift is pretty much that language. It doesn't have the imitable crate ecosystem or tooling, though.
- wbl 5y agoWhy not Ocaml?
- wk_end 5y agoOcaml's ecosystem is a total disaster. Do you use the lousy included standard library? Do you use Jane Street Base? Jane Street Core? Async? Lwt? Batteries? Containers? Iter? Esy? Opam? Ocamlbuild? Dune? Have you seen Dune's documentation? And Facebook fractured the ecosystem even more with Reason, obnoxiously.
- cb321 5y agoThis more|less also describes Nim. The recent automatic memory management ARC/ORC alternative is not really even what most people think of as "garbage collection". Its macros give you full AST accept & re-emit powers and it's had generics since before Go existed. I realize it probably does not score highly on "gets used", but it deserves more attention.
- ReleaseCandidat 5y ago> There is a market for a language like Rust but with garbage collection and reflection. That's why languages like JS/TS, Haskell, Elixir, OCaml (which is way more modern than Go), ... exist and are used.
- The_rationalist 5y agoKotlin is the best language to exist, people denying that simply have not learnt it.
- dagmx 5y agoThat language is Swift. It's got a lot of similarities with rust, just with everything being ref counted. If only its ecosystem was more platform agnostic.