Hopefully, we all knew it :))

And you should add that auto boxing
Is done on the literal, otherwise this
magic would not work.

Otherwise, Java would be the most
brittled language.

It probably is anyway :))

Luc P..

> The string concatenation operator in java calls 'toString' on it's args.
> 
> ---
> Joseph Smith
> [email protected]
> @solussd
> 
> 
> 
> 
> 
> 
> On Oct 8, 2013, at 2:29 PM, Cedric Greevey <[email protected]> wrote:
> 
> > On Tue, Oct 8, 2013 at 8:49 AM, Nando Breiter <[email protected]> wrote:
> > 
> > If you try and add 10 to "Hello" in a typed language, you get an error.
> > 
> > Interesting. I hadn't realized that the following's language was not typed:
> > 
> > package foo.bar;
> > 
> > public class Main {
> >     public static void main (String[] args) {
> >         System.out.println("Hello" + 10);
> >     }
> > }
> > 
> > % javac Main.java
> > % java foo.bar.Main
> > Hello10
> > % 
> > 
> > :)
> > 
> > 
> > -- 
> > -- 
> > 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 unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
--
Luc Prefontaine<[email protected]> sent by ibisMail!

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to