(Resending a sub-conversation with Alan that I'd neglected to hit reply-all on. Thanks Alan for pointing it out.)
---------- Forwarded message ---------- From: Alan Manuel Gloria Subject: Re: [Readable-discuss] wart On Sat, Jul 14, 2012 at 1:18 PM, Kartik Agaram <a...@akkartik.com> wrote: >> I notice some recent examples with a leading backslash, period, etc. >> But the docs so far haven't made any mention of them. Did I miss >> something? > > Ah, I did notice the discussion at the end of > http://sourceforge.net/p/readable/wiki/Solution, but forgot. Now it > makes a bit more sense, as do Alan's examples earlier in this thread. > I assume it's a corner-case escape hatch? Most of these examples I'd > rather just insert a couple of parens into. Otherwise we might as well > use parens to mean something else :) (assuming you refer to the use of \) Well, that depends. If you consider Arc 'if and 'with as well as CL (and many other Lisp's) keywords as corner-cases, then yes they're "corner-case escape hatch". Note that because sweet-expressions disables indentation processing inside parentheses, we try as much as possible to provide escapes such as these, so that we don't force the user into using parentheses (and thus force them to forgo indentation). > This sentence wasn't clear: > > "Currently, if a line begins with "group", the "group" is silently > removed. Alternative symbols for doing this, with possibly tweaked > semantics, are under discussion." > > Is that a literal keyword called 'group'? Yes, SRFI-49 http://srfi.schemers.org/srfi-49/srfi-49.html defines group, and dwheeler based the sugar layer on SRFI-49 reference implementation. Currently we are investigating/debating to remove group and replace it with a one-character symbol. On Sat, Jul 14, 2012 at 1:22 PM, Kartik Agaram <a...@akkartik.com> wrote: >> I assume it's a corner-case escape hatch? Most of these examples I'd >> rather just insert a couple of parens into. Otherwise we might as well >> use parens to mean something else :) > > I meant this example: > > myfunction > :option1 \ f(a) > :option2 \ g(b) > :option3 > \ h(c) > > Why not just myfunction(:option1 f(a), :option2 g(b), :option3 h(c))? > Or is there an issue with commas? Yes, comma means unquote. In addition, comma-whitespace is used in indentation processing to mean that the inner expression of the unquote is also processed using indentation processing. So: ` foo bar . nitz quux . , meow . . . cat fish ==> `(foo bar nitz quux ,(meow (cat fish))) ------------------------------------------------------------------------------ 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 Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss