Yes, (count mat8x8) is the appropriate method

Using meta was my mistake to avoid passing the matrix dimension over
and over again.


On May 18, 2:23 pm, "Heinz N. Gies" <he...@licenser.net> wrote:
> On May 18, 2010, at 14:13 , gL wrote:
>
>
>
> > Hi
>
> > is it good coding style to
>
> > (def mat8x8
> >     (with-meta
> >       [[0 0 0 0 0 0 0 0]
> ...
> >       [0 0 0 0 0 0 0 0]]
> >       {:dim 8}))
>
> > and later on to retrieve the matrix dimension with "(:dim (meta
> > <arg>)"?
>
> I personally would say no, since the dimension is data not meta information, 
> then again I'm never sure myself when to use meta. I'd go with something like 
> a map that holds :data (the map) and :dim (the dimension) or just do (count 
> mat8x8).
>
> Regards,
> Heinz
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=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
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