Curly-infix and readable Lisp
Posted Dec 4, 2012 21:10 UTC (Tue) by
HelloWorld (guest, #56129)
In reply to:
Curly-infix and readable Lisp by dakas
Parent article:
GNU Guile 2.0.7 released
and if you get the latter, it will be hard to figure the "flipping point" where #{ } will get used over normal list syntax in output, and where not.
The sweeten tool does this already. It employs heuristics to decide questions like these. They aren't perfect, but what's the worst that could happen? You get a string representation of a data structure that isn't as nice as it could have been, so what?
And frankly, things like
(second '#{ 3 + 4 #}) => 3
and
(cddr '#{ 3 + 4 + 5 #}) => (4 5)
will not particularly facilitate understanding.
Then don't write it that way. Besides, it's no more confusing than
(car ''x) => quote
But conversion to infix is a different beast than converting a conventional arrangement of dotted pairs to list syntax.
I don't see why.
(
Log in to post comments)