HackerTrans
トップ新着トレンドコメント過去質問紹介求人

jashkenas

no profile record

投稿

Why Taxpayers Pay McKinsey $3M a Year for a Recent College Graduate Contractor

mattstoller.substack.com
781 ポイント·投稿者 jashkenas·7 年前·310 コメント

コメント

jashkenas
·16 年前·議論
For what it's worth, there are tools that can help you avoid the bad parts. JSLint won't let you forget a "var" or "===" ... and if you use CoffeeScript, it's not possible to forget "var" or "===", because there aren't any.
jashkenas
·16 年前·議論
Not to be combative, but I think what he means is this: Although it's perfectly easy to use JavaScript from Objective-J, the same is not true in reverse. ObjJ generates code that looks like this:

    objj_msgSend(objj_msgSend(CPIndexSet,"alloc"),
      "initWithIndexSet:",_selectedRowIndexes);
... where objj_msgSend is how the Objective-J "interpreter" does it's magic. If I wanted to use a library that was originally written in Objective-J, from JavaScript, I'd have a hell of a hard time calling it correctly, unless the library author took special care to make it JavaScript-compatible in the first place. The syntaxes may not collide, but the semantics certainly don't match up.

On the other hand, you'd never know that you were calling a CoffeeScript library from JS, unless you inspected the source, and vice-versa. In that sense, they're interoperable.