[TxMt] How can TextMate be so popular???

Andy Armstrong andy at hexten.net
Tue Mar 6 21:24:25 UTC 2007


On 6 Mar 2007, at 21:21, Michael Jackson wrote:
> Ha ha...now I KNOW you're an idiot. First, learn javascript. Your  
> syntax is WRONG.

Actually his syntax is just fine. What did you think was wrong with it?

[18:51] andy $ js
js>
js> function foo () {
return {
//     bar: function ( x ) {
    bar: function ( x, y ) {
      return x + y;
    },
};
}
js> x = foo()
[object Object]
js> x.bar(1, 2)
3


-- 
Andy Armstrong, hexten.net




More information about the textmate mailing list