On Dec 20, 2011 12:48 PM, "David Nolen" <[email protected]> wrote:
>
> On Tue, Dec 20, 2011 at 3:05 PM, Brian Marick <[email protected]> wrote:
>>
>>
>> On Dec 20, 2011, at 12:11 PM, David Nolen wrote:
>>
>> >  Just make sure if you are attach :line metadata that you wrap with
(Integer. n)
>>
>> That works. Thanks again.
>>
>> Given that:
>>
>> >  (fact (type (inc (Integer. 0))) => java.lang.Long
>>
>>
>> ... would it be reasonable to ask that the compiler (or something) be
changed so that inadvertent use of a Long doesn't blow up? Or maybe
Haskellishly have a line number be some sort of wrapped type?
>
>
> Seems like :line should become Long given that's the default moving
forward.
>
> David

Casting to Number and taking the intValue or longValue seems preferable to
relying on a specific type.

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://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 [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to