Actions
Feature #6390
closedラムダの宣言ででるsyntax errorについて
Description
->x,y{x+y}
->(x,y){x+y}
->x,y {x+y}
->(x,y) {x+y}
-> x,y{x+y}
-> (x,y){x+y} # これだけ syntax error
この記述でもエラーにならないようには出来ないのでしょうか?
Updated by shyouhei (Shyouhei Urabe) over 12 years ago
- Category set to core
- Status changed from Open to Assigned
- Assignee set to nobu (Nobuyoshi Nakada)
これはバグだと思いますがいかがでしょう。
Updated by nobu (Nobuyoshi Nakada) over 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r35520.
西行寺, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- parse.y (parser_yylex): allow spaces between lambda arrow and
parenthesis. [ruby-dev:45605][Feature #6390]
Actions
Like0
Like0Like0