Hacker News new | ask | show | jobs
by thyrsus 4321 days ago
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?
1 comments

My program has only the two constructs `<<>>` and `<<>>=` which you could rather easily alter. src/Processing.he and src/Parse.hs