News for hackers. Stuff that matters.
Re:The Lisp Curse (2011) by greydius on Thursday February 25, 2016 @07:56PM (#11179150)
So why don't we write all binary operations that way? eg. x f y instead of f(x,y). I've always felt more comfortable with prefix notation, especially because it easily generalizes to more than two arguments. I think infix notation is an accident of mathematical history.
Re:The Lisp Curse (2011) by knughit on Thursday February 25, 2016 @09:49PM (#11179529)
Welcome to Haskell, where anything can be infix :-)
Re:The Lisp Curse (2011) by greydius on Friday February 26, 2016 @03:56AM (#11180494)
That can be nice in a lot of situations. e.g.

    (+) 4 2
 vs. 
    (+) <$> Just 4 <*> Just 2
I usually prefer the applicative style above to

    liftA2 (+) (Just 4) (Just 2)
because it preserves the "form" of the original expression and generalizes to more arguments. ie. it doesn't require liftAn for whatever n number of arguments my function takes.