Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>ActionScript is an extension of a <strong>very old</strong> version of java-script. At one point everyone was developing their one versions of java-script. Only two main versions went into common use </p> <ul> <li><strong>Jscript / java-script</strong> by netscape was used by all web browers</li> <li><strong>ActionsScript</strong> is used in flash etc.</li> </ul> <p>The “var” keyword is part of jscript, therefore ActionScript has it.</p> <p>I think in ActionScript2 the var keyword was restricted to Objects as part of the attempt to give ActionScript a stronger (more static) type system. ActionScript3 tries to be more like ECMAScript, so that jscript programmers have less problems using it, therefore ActionScript3 defined “var” (and untyped variable) like jscript does.</p> <p>There are a lot of very odd things in jscript, it is just not like any other language in main stream usage, due to <strong>history</strong> ActionScript has a lot of these odd thinks as well.</p> <p>ActionScript is being pulled in two directions, one group of people want it to be just like jscript, another group of people want it to be the best language it can be in it’s own right. Meanwhile a lot of developers have to use it occasionally and get very confused. </p> <p>(Hence some developers are looking at Silverlight just because it uses C# / VB.NET that they already know. History will tell us the outcome of this in 10 years time…)</p> <p><strong>See also</strong></p> <ul> <li><a href="http://en.wikipedia.org/wiki/ActionScript" rel="nofollow noreferrer">History of Action Script</a></li> <li><a href="http://en.wikipedia.org/wiki/ECMAScript" rel="nofollow noreferrer">History of ECMAScript</a></li> <li><a href="http://www.oreillynet.com/pub/a/javascript/2001/04/06/js_history.html" rel="nofollow noreferrer">JavaScript: How Did We Get Here</a>?</li> </ul> <p><strong>To sum up:</strong></p> <blockquote> <p>So I would says the <em>“rationale of untyped variables in actionscript-3”</em> is a combination of history and policies and have very little to do with good language design or computer science.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload