Thanks for the help. Sorry I got agitated about this - it was just that my code (that was doing lots of byte handling) worked with a previous version of clojure and then stopped working. Thanks Ken, I shall use your little workaround.
On Feb 12, 10:04 pm, Ken Wesson <kwess...@gmail.com> wrote: > On Sat, Feb 12, 2011 at 4:54 PM, Aaron Cohen <aa...@assonance.org> wrote: > > On Sat, Feb 12, 2011 at 4:42 PM, Ken Wesson <kwess...@gmail.com> wrote: > >> On Sat, Feb 12, 2011 at 8:28 AM, timc <timgcl...@gmail.com> wrote: > >>> (def b (byte i)) > > >>> is doing something equivalent to this internally: > > >>> byte b = Byte.parseByte(String.format("%d",i)); > > >> What the HELL? > > >> That's incredibly icky and inefficient. :) > > > Don't worry, it's not actually doing that: > >https://github.com/clojure/clojure/blob/f128af9d36dfcb268b6e9ea63676c... > > Oh, good. That's basically what I said it should do. -- 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