On Mon, Apr 19, 2010 at 6:29 PM, Meikel Brandmeyer <m...@kotka.de> wrote: > PS: Tested with 1.0, though. So maybe this changed to 1.1.
No, even in HEAD there is only support for reading doubles. It would be nice if the reader supported the customary 'f' suffix for reading floats. I actually made that change locally a while ago because I was getting tired of writing (float ...) around all my FP literals. It's as simple as renaming the current floatPat to doublePat, making a version of doublePat called floatPat with a mandatory 'f' at the end of the regular expression, and changing three lines in matchNumber() so floatPat is tried before doublePat and, in the case of a match, calling Float.parseFloat(). -Per -- 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