News for hackers. Stuff that matters.
Re:Not Lisp again (2009) by Tarean on Tuesday May 02, 2017 @01:34PM (#14248536)
I think haskell's syntax is extremely beautiful. However code that uses two dozen operators in half as many lines is incredibly ugly in any language and doing that can be quite tempting in haskell.

For code that non-haskellers have to work with I would just write everything out which is what lisp does and probably results in better code. Otherwise there still is a balance, I think. Like

Lispy:

    n <- textInput (set textInputConfig_inputType "number"
                    (set textInputConfig_initialValue "0" def))
Operators for precedence:

    n <- textInput $ def & set textInputConfig_inputType "number"
                         & set textInputConfig_initialValue "0"
Alias for function:

    n <- textInput $ def & textInputConfig_inputType .~ "number"
                         & textInputConfig_initialValue .~ "0"

There are no comments on this comment yet.