擬似コード記述のような、説明に使える“動く”プログラミング言語を探していて、一時はGroovyを候補に考えていました。が、最近はJavaScriptでいいやと思ってます。実際、ゲーデルの不完全性定理の説明にはJavaScriptを使ってるし。 構文のフレーバは伝統的な手続き型なので、説明なしに誰でもだいたい理解できます。 print("Hello world.");これをみて理解に苦しむ人はいないでしょう(もっとも、ブラウザで実行すると理解に苦しむことになるが(苦笑))。説明が必要でも、JavaScripの構文解説ならいくらでもそこらにありますし。 function式があるので、生のラムダ式の代わりにJavaScriptが使えます(なんならこれを参照)。メソッドも関数でラップできますから、そうしたいなら、純関数的に書くこともできます。 functio apply(func, args) {