Feature #6390
closed
ラムダの宣言ででるsyntax errorについて
Added by uy (西行寺 うゆ) over 12 years ago.
Updated over 12 years ago.
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
この記述でもエラーにならないようには出来ないのでしょうか?
- Category set to core
- Status changed from Open to Assigned
- Assignee set to nobu (Nobuyoshi Nakada)
- 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]
Also available in: Atom
PDF
Like0
Like0Like0