How would I do that? Make a macro that expands into a map literal with the appropriate calls to .get, .getShort and .getInt?
On Mar 22, 4:20 pm, Christophe Grand <christo...@cgrand.net> wrote: > Vincent Foley a écrit :> The code is available at this > URL:http://code.google.com/p/bwhf/ > > (look at the hu.becliza.andras.bwhf.control.[BinRepParser, > > BinReplayUnpacker] files) > > > It is definitely not as dynamic, which helps quite a lot, but I wanted > > to have something high level and declarative. > > If you want to go high-level and declarative you can certainly implement > this as a macro which will compile your declaration into fast static code. > > -- > Professional:http://cgrand.net/(fr) > On Clojure:http://clj-me.blogspot.com/(en) --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---