On Tuesday, August 14, 2012 3:33:03 PM UTC-5, Sean Corfield wrote:
>
>
> 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. 


In some instances, there are float[]s, but most often they form part of 
argument lists. e.g. (foo/bar "eg" (float 0.2f) (float 0.23) (float 0.23) 
etc other ...) I had thought about the *data-readers* approach for reading 
in float literals. As you say the syntax is not particularly clean.

   #myproject/float 3.14
   #f 3.14

vs.

  (float 3.14)

vs.

  3.14f (proposed)

*data-reader* might work great for kernels where I really need float[] 
though.

 #kernel [0.12 0.23, 0.12]

vs.

 (float-array [0.12 0.23, 0.12])


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