Lua's solution to long strings is having multiple levels of delimiters. [[ is the opening delimiter of level 0, and is closed by ]] . [=[ is of level 1, closed by ]=] , etc. No matter what string you are trying to represent, it can always be literally represented that way.
On 12 out, 17:25, Greg <g...@kinostudios.com> wrote: > Ah, I think I understand... but if you're saying that this should be > something that can be done on an individual basis I think that's a bad > idea, it would lead to confusing looking code and inconsistencies. > > There should be an officially sanctioned .. whatever it is this thing > is called. That way whenever you look at someone else's code and see > it, you know what it is, and people can update their code parser's/ > syntax highlighters appropriately. > > - Greg > > On Oct 12, 2009, at 2:59 PM, DanL wrote: > > > > > On 12 Okt., 20:46, Greg <g...@kinostudios.com> wrote: > > >> Forgive me, but I'm unfamiliar with the readtable, are you just > >> referring to where this syntax might be implemented? Or are you > >> suggesting an alternative syntax? > > > I'm suggesting that the readtable might be exposed to user changes as > > it is in CL, but only if a means of managing different readtables is > > provided, hence the link pointing to named-readtables, which allows > > just that (naming and merging readtables using an API resembling the > > package API). This would allow introduction of new reader macros by > > the user. > > > As I said, there already was some discussion on that topic, but I just > > have played around with named-readtables since the new release and > > came to the conclusion, that something akin to them might be nice in > > clojure, too. Things like heredocs are not something that every user > > needs every day, so they would, IMHO, be a good candidate for a user > > readmacro. > > > Regards, > > > dhl --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---