18 Aoû
2005
18 Aoû
'05
20:30
2. Making little sub-languages for specialized processing e.g.
(with-vectors (v1 v2 v3) (v1 <- (+ v2 v3)))
for summing up the vectors v2 and v3 and storing it in v1.
Nice! I also liked the challenge in example #1 of allowing multiple bodies in the bindings. Here's a challenge for #2 -- would this language be any more usable by eliminating the need to declare the vectors, i.e. how about this... (with-vectors (v1 <- (+ v2 v3))) -Patrick