![](https://lemmy.sdf.org/pictrs/image/ba84ab8f-8650-4951-a6f5-35ea2badb754.png)
![](https://programming.dev/pictrs/image/8140dda6-9512-4297-ac17-d303638c90a6.png)
142·
10 months ago{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T (Text)
correctAnswer :: T.Text
correctAnswer = "Haskell"
English but not in a Brexit way.
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T (Text)
correctAnswer :: T.Text
correctAnswer = "Haskell"
Doom Emacs with lsp
and rust-analyzer
I recommend Pocket Casts.
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