On Aug 16, 2009, at 9:27 PM, Stephen C. Gilardi wrote: >> What I might be able to do is define alternatively-hinted versions >> of let, for, doseq, etc., and rebind clojure.core/destructure >> during the evaluation of those macros so that the s:String style >> can get layered on top of binding forms (more) uniformly. >> >> Feels hacky, though....thoughts? > > My current favorite is a gen-class'd alternative to clojure.main > that calls "bindRoot" on clojure.core/destructure to replace it with > your customized version and then calls clojure.main. This way we can > play with this pervasively both in the repl and in loaded code with > the only tweak being calling your customized entry point instead of > clojure.main.
OK, I'll take a look at that. Actually, if this were to ever become an accepted default, the real change would have to be in the reader, so as to enable call-site hinting (e.g. (.toCharArray s:String). But, I'm definitely not going to open that can of worms at the moment (and it wouldn't be as simple and unobtrusive as the alternative entry point you suggest). - Chas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---