On Mon, Aug 13, 2012 at 11:14 PM, Matthew Kennedy <burnsid...@gmail.com> wrote:
> [(float 0.12) (float 0.33) (float 0.56)].

That's a sequence of Float objects not a float[], just FYI.

> As far as I can tell there's no way to do this with user code. I think it
> would have to be done within the Clojure runtime by adjusting
> ListReader.java to change the floating point reader regex and switching on
> an suffix character.

Could you use the extensible reader literal approach? I know the
syntax wouldn't be quite as clean, but if you genuinely need float[]
as well as float values, that might be more convenient in the long
run.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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

Reply via email to