News for hackers. Stuff that matters.
Re:Ask HN: What's the best “higher level Rust” these days? by amir734jj on Monday September 26, 2022 @04:49PM (#32988171)
C# is a good option.

F# if you want functional C#.

Scala if you are adventurous.

Re:Ask HN: What's the best “higher level Rust” these days? by mxz3000 on Monday September 26, 2022 @05:15PM (#32988535)
C# is great, if you ignore the lack of algebraic data types and the generally weak type system. Value types in C# are awesome and really make it easy to write super high performance code that doesn't allocate!

F# is awesome if you ignore the fact that it's so easy to shoot yourself in the foot from a performance standpoint with all the lazy constructs. It sure is awesome though to have such a strict type system, though I do sometimes miss features that Typescript has, such as structural typing and mapped types.

In general I do thing the dotnet ecosystem offers a really good set of compromises.

Re:Ask HN: What's the best “higher level Rust” these days? by akkad33 on Tuesday September 27, 2022 @01:07AM (#32991727)
What do you mean by lazy constructs? F# is not lazy by default but opt-in using seq.
Re:Ask HN: What's the best “higher level Rust” these days? by amir734jj on Tuesday September 27, 2022 @02:17AM (#32992033)
Agreed. I really like TypeScript type system. I wish there was a language that used .NET but used TypeScript syntax/semantics. Maybe deno?