<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>David R. MacIver - Latest Comments in A curious fact about overloading in Scala</title><link>http://drmaciver.disqus.com/</link><description></description><atom:link href="https://drmaciver.disqus.com/a_curious_fact_about_overloading_in_scala/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 27 Aug 2008 04:11:51 -0000</lastBuildDate><item><title>Re: A curious fact about overloading in Scala</title><link>http://www.drmaciver.com/2008/08/a-curious-fact-about-overloading-in-scala/#comment-6265751</link><description>&lt;p&gt;No, I don't think that's the case.&lt;/p&gt;&lt;p&gt;It's and covariant return types are the only cases of it actually being used in the Java implementation, but the Java virtual machine spec second edition documents this behaviour and predates both generics and covariant return.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">david</dc:creator><pubDate>Wed, 27 Aug 2008 04:11:51 -0000</pubDate></item><item><title>Re: A curious fact about overloading in Scala</title><link>http://www.drmaciver.com/2008/08/a-curious-fact-about-overloading-in-scala/#comment-6265750</link><description>&lt;p&gt;Overloading based on return type was introduced for exactly one reason: When introducing generics with erasure, they needed "bridge methods", and these would often conflict with existing "real" ones. To reduce the number of these clashes, they allowed to use overloading based on return type in the JVM, but not in in the compiler for "normal" code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel</dc:creator><pubDate>Wed, 27 Aug 2008 04:09:01 -0000</pubDate></item><item><title>Re: A curious fact about overloading in Scala</title><link>http://www.drmaciver.com/2008/08/a-curious-fact-about-overloading-in-scala/#comment-6265749</link><description>&lt;p&gt;Indeed. It will confuse the hell out of java.lang.reflect too.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">david</dc:creator><pubDate>Wed, 27 Aug 2008 03:51:56 -0000</pubDate></item><item><title>Re: A curious fact about overloading in Scala</title><link>http://www.drmaciver.com/2008/08/a-curious-fact-about-overloading-in-scala/#comment-6265748</link><description>&lt;p&gt;I'm fairly sure most JVM languages, including java, won't understand this. So, cool trick, but can't use it if you need interop with other JVM languages. Which is a bit of a shame, because the whole point of JVM interop is that it's not something you program for or think about, you just get it for free.&lt;/p&gt;&lt;p&gt;I'm guessing the original intent was for overloading based on just different return types not to be legal, but then this issue came up, and now its the status quo.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reinier Zwitserloot</dc:creator><pubDate>Wed, 27 Aug 2008 03:44:00 -0000</pubDate></item></channel></rss>