3 ms·
From a Rustacean's perspective: Golang is a no go because it lacks enum types, sensible error handling, generics (I think it has some version of this now), non-
by winstonewert 3y ago
From a Rustacean's perspective: Golang is a no go because it lacks enum types, sensible error handling, generics (I think it has some version of this now), non-nullable types, or macros. Once you've gotten used to using these kinds of features in Rust, it is really annoying to go back and work in a language that lacks them.
Basically, golang takes such an opposite design approach to Rust, that if you like Rust you'll probably hate golang.
We also find that once you get used to the borrow checker, we mostly don't miss garbage collection. And garbage collection isn't a panacea either, as almost any large project still ends up with memory leaks caused by stray references.
So, basically, we like Rust and think its a well designed language. It is quite frankly better, as a language, than any of the alternatives that we could be writing in. As such, it'd be nice if we could develop GUI applications in it.
- 8note 3y agoIf you're going to use electron and all the bad that comes with it, why not just use typescript though?
- baq 3y agoI love typescript, but hate the JavaScript parts of it.
- jeroenhd 3y agoWith a good linter config set super strictly, you can make Typescript feel like you're barely writing Javascript at all. Any Javascript devs will probably hate working like that because now they're forced to write types for absolutely every single thing, but to me it felt like Javascript was finally fixed. Just banning things like "any" and enforcing proper nullability makes up for a lot of Javascript problems.
- bmikaili 3y agoThis is the worst part of JS. To make it workable u have to: - setup linting (which is awful and annoying) - formatting - use typescript and then maybe u have a usable work environment. Rust just does that out of the box.
- TobyTheDog123 3y agoI disagree - Javascript's issues are not just its lack of type safety. Even with Typescript you're dealing with the disastrous state of NPM/configuration/linters/formatters/libraries -- all of which are firmly Javascript-esque plagues (though not exclusively Javascript plagues).
- winstonewert 3y agoBecause even though typescript improves on Javascript and even golang, it still is much less nice than Rust.