This is what peak performance looks like:
let
eval = expr: import ( builtins.toFile "__EXPR" expr );
xeval = expr:
let rsl = toString ( eval expr );
elen = builtins.stringLength expr;
splitC = if ( 60 < elen ) then "\n " else " ";
in "( ${expr} ) ==>${splitC}${rsl}";
in xeval ''let noun = "debuggers"; adj = "bloat"; in noun + " are " + adj''
( let noun = "debuggers"; adj = "bloat"; in noun + " are " + adj ) ==>
debuggers are bloat
That’s all, thanks for reading.
Bonus points to whoever adds seq
and toXML
for maximum effect.