Rubyについて Part 31
at TECH
494:デフォルトの名無しさん
08/05/27 20:35:57
まっつんがGuidoに言ってたlambda式の拡張、"just plain ugly"で一刀両断ですなあ。
pep-3099
URLリンク(www.python.org)
lambda will not be renamed.
At one point lambda was slated for removal in Python 3000. Unfortunately no one was
able to come up with a better way of providing anonymous functions. And so lambda is
here to stay.
But it is here to stay as-is. Adding support for statements is a non-starter. It would
require allowing multi-line lambda expressions which would mean a multi-line
expression could suddenly exist. That would allow for multi-line arguments to function
calls, for instance. That is just plain ugly.
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5495日前に更新/123 KB
担当:undef