News for hackers. Stuff that matters.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by nicoburns on Thursday June 02, 2022 @07:45PM (#31602112)
Swift is by far the closest from a language point of view, but alas the ecosystem is all-but-nonexistent outside of the Apple systems.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by josephg on Thursday June 02, 2022 @10:24PM (#31603506)
This is a shame.

Swift could be a lovely general purpose language. I like the balance swift strikes between ease of use, expressiveness and performance. Like, swift has an equivalent of Option - but there’s syntax sugar for it. Rust has String / &str / Etc. To get a SSO string you need to pull in an external crate. Swift just has a built in, good, general purpose SSO string as part of the language.

But adding random half baked features to swift seems to be on the promotion path at Apple. Nothing is well documented. The language doesn’t feel stable and there isn’t much of a broad community like there is with rust, javascript and python. It’s a pity!

Re:Rust Is Hard, Or: The Misery of Mainstream Programming by efnx on Friday June 03, 2022 @04:21PM (#31613166)
I would argue that swift is pretty distant compared to the ML family of languages - specifically Haskell. Besides garbage collection, the biggest difference between Haskell and Rust is that Haskell already has higher kinded types.