Rubyについて Part 31 at TECH
[2ch|▼Menu]
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