News for hackers. Stuff that matters.
Re:Learn Go: Hand-crafted Go exercises and examples by Insanity on Saturday May 16, 2020 @10:28PM (#23208983)
Yes you can, lots of functional languages work without mutation. I'd go as far as to say mutating should be the exception, not the default, in more traditional languages.
Re:Learn Go: Hand-crafted Go exercises and examples by littlestymaar on Sunday May 17, 2020 @02:19AM (#23209989)
Go misses almost all tools a functional programming language offers (no iterator or combinators of any kind) and even if you really wanted and decided the verbosity wasn't a problem for you, I'm pretty sure the compiler doesn't optimize it well (it does a lot less optimisations than LLVM for instance).
Re:Learn Go: Hand-crafted Go exercises and examples by Insanity on Monday May 18, 2020 @08:02AM (#23221258)
But those things don't make a language functional. It's like saying there are no lambda statements as there is no lambda syntax, but syntax != feature.

I mean I see your point, and if I really wanted to be fully functional I'd use a language _with_ those things like Haskell. But not being mutable is easy in Go too.