News for hackers. Stuff that matters.
Re:Show HN: Lit – a modern literate programming tool by thyrsus on Saturday August 16, 2014 @12:50AM (#8185442)
Erlang uses <<stuff>> to express binary strings. In other literate programming environments, e.g., org mode and noweb, I have to break up the string like

    <<"word"
    >>
...which is ugly. I've tried other workarounds like defining a macro

    -define (bs(X), <<X
    >>
and then use

    bs("word")
...which is still ugly. Any better suggestions?
Re:Show HN: Lit – a modern literate programming tool by cdosborn on Saturday August 16, 2014 @12:56AM (#8185447)
My program has only the two constructs `<<>>` and `<<>>=` which you could rather easily alter. src/Processing.he and src/Parse.hs