Alan Manuel Gloria:
> Now, my instinct is that option2 requires another semantic symbol with
> a different name. Let's call it ENLIST. And we want an ENLIST-inline
> rule that is different from SPLICE-inline, but which is ultimately
> compatible with ENLIST-at-the-start (in the same manner that
> SPLICE-inline and SPLICE-at-the-start are compatible in the sense that
> vim's shift-J transform them syntactically from one to the other but
> retain the semantic meaning).
>
> Provisionally let's use ~ for ENLIST (which is sadly used in Arc, but
> I suppose we can say "tilde whitespace", since Arc uses ~ as a prefix
> on symbols meaning "negate the function of this symbol")
Reasonable enough. Other punctuation we might use for some purpose other than
~ includes !, @, and ^. A combo could be used too, e.g., ~~ or !! or ^^.
I'm getting a little concerned about the symbol \. While I think it LOOKS
nice, it has an established meaning in Common Lisp (and I think other
implementations too).
> ENLIST-at-the-start:
>
> let
> ..~ var1 val1
> ....var2 val2
> ..content
>
> ENLIST-inline (!!)
>
> ; (you should probably view this in a fixed-width font)
> let ~ var1 val1
> ......var2 val2
> ..content
>
> ...so how do we spec it? I dunno. Probably need to make head accept
> a declarative input too, hahaha.
*That's* interesting.
You could also do:
let ~ var1(val1) var2(val2)
..content
To be fair, for the simple version, the ~ isn't much more complex than:
let (var1(val1) var2(val2))
..content
The real advantage of this ENLIST (~) operator is when val1 or val2 are more
complex, so you'd like to be able to indent further (since parens disable
indentation processing).
> > That said, I'm simply floating the idea at this point. Both
> > option#1 ("initial-\-ignored") and option#2 ("initial-\-creates-new list")
> > seem plausible enough.
--- David A. Wheeler
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/readable-discuss