Post ABxle5MQgNwsGsJRLs by jwinnie@theres.life
 (DIR) More posts by jwinnie@theres.life
 (DIR) Post #ABwJPcN28PkafwUmZs by hyperrealgopher@fosstodon.org
       2021-10-02T02:06:33Z
       
       0 likes, 0 repeats
       
       I have to learn #rust sometime. I read it took inspiration from #haskell and I wanted to learn Rust anyway.
       
 (DIR) Post #ABwe7mIn75Ij3eIZ6m by Spaceface16518@fosstodon.org
       2021-10-02T05:58:43Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher not having monads gets annoying but it’s my favorite language nonetheless10/10 highly recommend
       
 (DIR) Post #ABwgIfYYjY3vEKzkGG by friend@linuxrocks.online
       2021-10-02T06:23:04Z
       
       0 likes, 0 repeats
       
       @hyperrealgopherI mean, Haskell wasn't the biggest influence, it is still an imperative language at heart, but yeah, Rust has several concepts that will feel familiar/comfortable to a Haskell programmer:- powerful type system- Haskell's "Maybe" is Rust's "Option" and "Result"- first-class functions- list-functions, like map, for_each etc. are all there- side-effects are relatively restricted by having variables and parameters immutable by default- if it runs, it's probably correct
       
 (DIR) Post #ABxle5MQgNwsGsJRLs by jwinnie@theres.life
       2021-10-02T18:57:41Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher Rust is sooo great! I would definitely recommend to learn it :)Although - it's more inspired by OCaml than Haskell, in terms of both syntax and attitude towards functional programming - it definitely values practicality over correctness or elegance, and you should expect to write a lot of ugly imperative code.