about summary refs log tree commit diff stats
path: root/factorial.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-11-27 05:18:40 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-27 05:23:22 -0800
commit6952b8f0693920b7ad27793a75defaca5ef31a9d (patch)
tree53b41bab071a46adaab05d507fb9329d09a7f2de /factorial.mu
parenta069fd623df37f29cc97cca74b1fe74abfc658de (diff)
downloadmu-6952b8f0693920b7ad27793a75defaca5ef31a9d.tar.gz
344 - about to give up on rewrite rules
I wanted to come up with some way to rewrite 'def-clause foo' to 'after
foo/more-clauses', something like:

  rewrite def-clause [
    (fn-name string-address) <- arg
    (label-name string-address) <- strcat (fn-name string-address deref) ("/more-clauses" literal)
    (body expr) <- arg
    reply `(after ,label-name ,body)
  ]

But the quasiquote is still a nested expression that doesn't fit our
model well.

Still an open question how to do template interpolation in mu.
Diffstat (limited to 'factorial.mu')
0 files changed, 0 insertions, 0 deletions