From: Keats <ke...@ea...> - 2003-07-23 17:24:49
|
> ... I think the signature to the scripter should be the same as the signature to the author so that the method description and use is uniform. So, I tend to agree with Marc's critique of Keat's hidden Context parameter. I disagree strongly here. The whole point of the script language is to simplify the syntax for the scripter. We tend to see things through the eyes of a Java coder, rather than a Web page designer. The designer shouldn't have to know anything about the Context object, just what functions are available in for scripting. As an analogy, Java implicitly includes the instance variable "this" in non-static method calls as a convenience to the programmer. Other languages, such as Python, make you supply it as an argument, which I find a pain. Keats |