News for hackers. Stuff that matters.
Re:Kronos Haskell by okasaki on Wednesday March 25, 2015 @02:30PM (#9264937)
The Haskell's record/struct syntax is probably the worst of any language.

C style:

    a.b.c = 1;
Haskell:

    let b' = b a
        c' = 1 + c b'
        b'' = b' { c = c' }
    in c' { b = b'' }
Re:Kronos Haskell by cgag on Wednesday March 25, 2015 @04:05PM (#9265562)
It is bad, but couldn't you also write:

    a { b { c = 1 } }
Re:Kronos Haskell by tel on Wednesday March 25, 2015 @04:38PM (#9265759)
It's (b . c .~ 1) with lens. Or a { b = (b a) { c = 1 } } without.
Re:Kronos Haskell by wz1000 on Wednesday March 25, 2015 @02:47PM (#9265066)
lens attempts to solve that. Though it does so at the cost of unreadable types.