News for hackers. Stuff that matters.
Re:Functional programming is not popular because it is weird... by Y_Y on Monday September 13, 2021 @02:59PM (#28515323)
What about Haskell?

  do
    putStr "What is your first name? "
    first <- getLine
    putStr "And your last name? "
    last <- getLine
    let full = first ++ " " ++ last
    putStrLn ("Pleased to meet you, " ++ full ++ "!")
(see: https://en.m.wikibooks.org/wiki/Haskell/do_notation )
Re:Functional programming is not popular because it is weird... by amusedcyclist on Monday September 13, 2021 @11:37PM (#28519947)
Gets a bit uglier if you use >>= instead lol