On Jun 5, 2009, at 3:27 PM, Phil Hagelberg wrote:

>
> "Stephen C. Gilardi" <squee...@mac.com> writes:
>
>> (my-cool-database-operation the-database
>>  (arg-exp-1 with operands)
>>  literal-arg
>>  angstroms)
>>
>> There doesn't seem to be an easy way to distinguish these two types  
>> of
>> initial operands (or the N-2 other types I've missed). "with-*" would
>> probably seldom be wrong as an indicator of the second type.
>
> The only way I can think of is to connect to a running slime instance
> and check to see if the var refers to a macro that takes a & body
> argument. But this is a lot of moving parts for a slim benefit. It's
> easier just to name these kinds of macros with-foo. =)

I think Slime does this with CL. At least I seem to remember having  
code with macros that indented differently when the connection was  
established.

—
Daniel Lyons
http://www.storytotell.org -- Tell It!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to