Project

General

Profile

Actions

Feature #6390

closed

ラムダの宣言ででるsyntax errorについて

Added by uy (西行寺 うゆ) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
[ruby-dev:45605]

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) almost 12 years ago

  • Category set to core
  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)

これはバグだと思いますがいかがでしょう。

Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 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

Also available in: Atom PDF

Like0
Like0Like0