Re: #^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread David Nolen
Works. amazing. On Mon, Jan 19, 2009 at 4:51 PM, David Nolen wrote: > Actually, so this can't be used on structs for fns? > > On Mon, Jan 19, 2009 at 1:47 PM, Stuart Sierra < > the.stuart.sie...@gmail.com> wrote: > >> >> On Jan 19, 1:15 pm, David Nolen wrote: >> > I've noticed this as well. It

Re: #^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread David Nolen
Actually, so this can't be used on structs for fns? On Mon, Jan 19, 2009 at 1:47 PM, Stuart Sierra wrote: > > On Jan 19, 1:15 pm, David Nolen wrote: > > I've noticed this as well. It seems to me that this prevents you from > > dynamically defining a var (like in a macro) that has metadata attac

Re: #^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread David Nolen
Wow, nice! On Mon, Jan 19, 2009 at 1:47 PM, Stuart Sierra wrote: > > On Jan 19, 1:15 pm, David Nolen wrote: > > I've noticed this as well. It seems to me that this prevents you from > > dynamically defining a var (like in a macro) that has metadata attached > to > > it or it's arguments (if it's

Re: #^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread Stuart Sierra
On Jan 19, 1:15 pm, David Nolen wrote: > I've noticed this as well.  It seems to me that this prevents you from > dynamically defining a var (like in a macro) that has metadata attached to > it or it's arguments (if it's a function).   You can also use the new alter-meta! function, which works o

Re: #^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread Meikel Brandmeyer
Hi, Am 19.01.2009 um 19:15 schrieb David Nolen: I've noticed this as well. It seems to me that this prevents you from dynamically defining a var (like in a macro) that has metadata attached to it or it's arguments (if it's a function). Is there no way around how the reader works? Can the

#^ Reader Macro Issues was Re: function equivalents of macro characters

2009-01-19 Thread David Nolen
On Mon, Jan 19, 2009 at 12:24 PM, Chouser wrote: > > #^ - metadata > > #^ adds metadata at read-time, so there's no way for a function to do > exactly the same thing, though 'with-meta' does something similar at > runtime. > I've noticed this as well. It seems to me that this prevents you from

Re: function equivalents of macro characters

2009-01-19 Thread Chouser
On Mon, Jan 19, 2009 at 9:10 AM, Mark Volkmann wrote: > > What are the equivalent functions, if any, for these? > > \ - character literal I came up with a couple options: ((into {} (map (comp vec reverse) char-name-string)) "newline") (read-string "\\newline") > #"..." - regular expression - re