stubbornella: Why do people hate promises so much? [http://twitter.com/stubbornella/status/443905863049158656]
stubbornella: なんでみんなpromiseそんなに嫌いなの?
substack: @stubbornella chaining DSLs are cumbersome and promises turn verbs into nouns, java-style [http://twitter.com/substack/status/443934916581920768]
substack: chaining DSLは複雑だし、promiseは動詞を名刺にしないといけないよね、javaっぽい。
※ chaining DSL例
chain([ 1, 2, 3, 4, 5, 6 ]).
map(function(x) { return x + 1 }, 3).
filter(function(x) { return x % 2 }).
fold(function(x, y) { return x + y }, 0)
※ promiseの動詞 => 名詞はsuccessとかerrorとかかな。
wycats: @stubbornella node Thought Leaders hate everything node didn't invent. [http://twitter.com/wycats/status/446495604579921920]
wycats:nodeはコアメンバーがnodeが開発しなかった全てのものを嫌ってるんだと思う
substack: @wycats @stubbornella the core of the language is the wrong place for a flow control library [http://twitter.com/substack/status/446496103421054976]
substack:言語のコアがフロー制御ライブラリを持つのって間違ってるよね。
substack: @wycats @stubbornella the wider problem is that standards bodies can only add, never subtract yet barrel forward with unproven complications [http://twitter.com/substack/status/446499540175052802]
substack: APIが標準になった場合、追加しかできなくて、決して無くすことができないのが問題なんだ。(だからコアが追加するのは慎重になったほうがいいんだって言いたいんだと思う。)
izs: @substack I dunno, the core language is where lots of other flow control primitives live. Loops, fn's, etc. /@wycats @stubbornella [http://twitter.com/izs/status/446506819150553090]
izs: コア言語がたくさんのprimitiveなフロー制御を持つのって聞いたこと無いなぁ。ループ、関数ならともかく。
izs: @substack @wycats @stubbornella I think, if you're gonna add to the core language, why not do it in a much BIGGER way? Seems like a waste. [http://twitter.com/izs/status/446507145547087872]
izs: コア言語に追加しようとしてるなら、もっとより大きな方法(新言語を作るとか?)をとらないのはなんでなの?って思うけどね、大変だとは思うけど。
substack: @izs but those can't exist as libraries that same way that promises are already implemented entirely as libraries [http://twitter.com/substack/status/446509618676518912]
substack: promiseがライブラリとして既に実装されてて同じ方法ではライブラリとして存在できないよね。
izs: @substack Right, that's why I'm saying that Promises should've gone much deeper. If you're gonna change the language change the language. [http://twitter.com/izs/status/446511052243476480]
Promiseはもっと深くなればよかったのにって僕が言ってる意味はそこなんだよね。もし言語を変えようとしてるなら、言語を変えれば(違う言語を作れば?)いいと思う。
substack: @izs Right, I agree! Promises are really disappointing in that respect. [http://twitter.com/substack/status/446512015008210944]
そうだね、Promiseは(言語仕様として後から追加されたから言語に深く食い込んでない)その側面が残念だよね。