News for hackers. Stuff that matters.

rhymoid

Re:Ask HN: Any downsides of programming in Haskell? on Tuesday June 18, 2013 @12:02PM (#5900058)
2. Enough languages don't conflate ring addition and string concatenation (in TIOBE order: C, Obj-C, PHP, Visual Basic (somewhat), Lisp, Ada, MATLAB, Lua). Furthermore, there are at least two "sensible" monoids on numbers (sum and product), but just one for strings (concatenation). `+` implies something more specific than a generic monoidal concatenation operator. Though I think `++` was a poor choice, one of many in the standard Prelude.