<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx</link><description>John Resig of Mozilla and jQuery fame has a very interesting post about method overloading in JavsScript. In a nutshell, he proposes a utility function that gives a relatively simple way of overloading a method. The different versions are distinguished</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#6122154</link><pubDate>Tue, 22 Apr 2008 22:30:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6122154</guid><dc:creator>Jonah Dempcy</dc:creator><author>Jonah Dempcy</author><description>&lt;p&gt;I posted an article about this, also discussing John Resig&amp;#39;s version and offering an alternative. My proposed solution may fall prey to some of the same problems you mention but it offers the nifty ability to overload functions with type signatures, not just based on the number of parameters.&lt;/p&gt;
&lt;p&gt;I think some method overloading is nice, like how jQuery or MooTools will sometimes allow you to provide the String id of an HTML object or a reference to the object itself. But, it certainly isn&amp;#39;t a necessary feature and adding additional overhead and boilerplate code for defining functions isn&amp;#39;t ideal. So, perhaps the solution proposed in my article is best suited for theoretical discussion rather than production use.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6122154" width="1" height="1"&gt;</description></item><item><title>Javascript Closures...</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5282197</link><pubDate>Mon, 19 Nov 2007 17:39:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5282197</guid><dc:creator>Jay Kimble</dc:creator><author>Jay Kimble</author><description>&lt;p&gt;I was reading this post by Bertrand Le Roy . And in many respects I agree with Bertrand and also with&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5282197" width="1" height="1"&gt;</description></item><item><title>napyfab:blog&amp;raquo; Blog Archive &amp;raquo; links for 2007-11-17</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5262055</link><pubDate>Sat, 17 Nov 2007 23:28:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5262055</guid><dc:creator>napyfab:blog» Blog Archive » links for 2007-11-17</dc:creator><author>napyfab:blog» Blog Archive » links for 2007-11-17</author><description>&lt;p&gt;Pingback from &amp;nbsp;napyfab:blog&amp;amp;raquo; Blog Archive &amp;amp;raquo; links for 2007-11-17&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5262055" width="1" height="1"&gt;</description></item><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5208148</link><pubDate>Thu, 15 Nov 2007 07:06:37 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5208148</guid><dc:creator>Sean Kinsey</dc:creator><author>Sean Kinsey</author><description>&lt;p&gt;Here is a simple solution that supports multiple signatures differentiated by types, and it has a low overhead as well..&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5208148" width="1" height="1"&gt;</description></item><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5193786</link><pubDate>Wed, 14 Nov 2007 22:14:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5193786</guid><dc:creator>Joe Chung</dc:creator><author>Joe Chung</author><description>&lt;p&gt;I am a big fan of IntelliSense but not at the expense of a programming language&amp;#39;s expressiveness.&lt;/p&gt;
&lt;p&gt;I wonder if there would be a way for currying to support overloading methods by arity.&lt;/p&gt;
&lt;p&gt;Maybe use pattern matching like in F# to support overloading methods by arity and parameter datatype.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5193786" width="1" height="1"&gt;</description></item><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5191820</link><pubDate>Wed, 14 Nov 2007 21:34:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5191820</guid><dc:creator>AndrewSeven</dc:creator><author>AndrewSeven</author><description>&lt;p&gt;I don&amp;#39;t feel any need for hacked-in* overloading, but I do think its a good thing to be adding to the next version.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5191820" width="1" height="1"&gt;</description></item><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5189178</link><pubDate>Wed, 14 Nov 2007 20:43:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5189178</guid><dc:creator>Bo Breiting</dc:creator><author>Bo Breiting</author><description>&lt;p&gt;This sounds like an all too familiar road to me. JavaScript has suffered a long history of hacks and personal interpretations that has lead to clouded standards and unstable solutions causing more and more developers to turn away from client side development and towards server side solutions for stability. Now with the dawn of web2.0 clients are growing feature rich again and once again the focus is on client side scripting which has finaly lead to some at least half decent environments with IntelliSense making client side development and debugging easier. The last thing we need now are more individual problem solving and hacks.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5189178" width="1" height="1"&gt;</description></item><item><title>re: Does JavaScript need method overloading?</title><link>http://weblogs.asp.net/bleroy/archive/2007/11/14/does-javascript-need-method-overloading.aspx#5186818</link><pubDate>Wed, 14 Nov 2007 20:02:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5186818</guid><dc:creator>David Fauber</dc:creator><author>David Fauber</author><description>&lt;p&gt;I agree with your take. &amp;nbsp;Its something that&amp;#39;ll be nice to have as a first class feature of the language. &amp;nbsp;(this is actually one of the few ES4 things I&amp;#39;m looking forward to having) &amp;nbsp;Its &amp;nbsp;nowhere near a big enough deal for me to want a ES3 workaround, though.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5186818" width="1" height="1"&gt;</description></item></channel></rss>