WatTyler@lemmy.sdf.orgtoProgramming@programming.dev•Which language you wish would really grow and reach mainstream adoption?
142·
1 year ago{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T (Text)
correctAnswer :: T.Text
correctAnswer = "Haskell"
I’m learning Rust at the moment and I too think I have some reservations with its syntax. Most of these reservations come from my strong preference for functional programming over OOP.
I am unsure if I like method-syntax period, even if it isn’t inherently OO. Chaining just makes me feel uncomfortable in a way piping doesn’t.
Also it seems idiomatic for values of enumerated types to be written
Type::Enum
, which seems ugly and unnecessary.What’d you make of this article?: https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html