問題タブ [callcc]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
214 参照

python - call-with-continuation の実装を理解する

Pythonコードで書かれたスキーム手順を理解しようとしています:

このチュートリアルからのものです: http://norvig.com/lispy2.html .

上記はどのように機能しますか?どういうball意味ですか? また、なぜ a proc(edure?) がthrow引数値として a で呼び出されるのでしょうか? そして、「エスケープのみ」というコメントはどういう意味ですか?


ちなみに、Pythonに適用される継続についての私の現在の(おそらく見当違いの)理解は次のとおりです。これは、yieldで関数を渡すことに似ています。