Fluent comma

e\$B1sF#\$H?=\$7\$^\$9!#e(B

[ruby-core:16240] syntax request e\$B\$G!"9TF,\$N%3%s%^\$rA0\$N9T\$Ne(B
e\$BB3\$-\$H8+\$J\$9J8K!3HD%\$,Ds0F\$5\$l\$F\$\$\$^\$9!#e(B

foo( “foo”
, “bar”
, “baz”
)

h = { 1 => “1”
, 2 => “2”
, 3 => “3”
}

Haskell e\$BIw\$N%\$%s%G%s%H\$,2DG=\$K\$J\$j!"8+\$d\$9\$/JT=8\$7\$d\$9\$\$\$G\$9!#e(B

e\$B8=>u\$G\$be(B r13777 e\$B\$+\$i!"9TF,\$N%I%C%H\$,A0\$N9T\$NB3\$-\$H8+\$J\$5\$l\$ke(B
e\$B\$h\$&\$K\$J\$C\$F\$\$\$^\$9!#e(B

“1” e\$B\$r=PNOe(B

puts 1
.to_s

e\$B%3%s%^\$G\$bF1\$8\$h\$&\$K\$7\$F\$\$\$\$\$H;W\$&\$N\$G\$9\$,!"\$I\$&\$G\$7\$g\$&\$+!#e(B

Index: parse.y

— parse.y (revision 16018)
+++ parse.y (working copy)
@@ -6096,6 +6096,9 @@
}
while ((c = nextc())) {
switch © {

• ``````   case ',':
``````
• pushback(’,’);
• goto retry;
case ’ ': case ‘\t’: case ‘\f’: case ‘\r’:
case ‘\13’: /* ‘\v’ */
space_seen++;

e\$B\$^\$D\$b\$He(B e\$B\$f\$-\$R\$m\$G\$9e(B

In message “Re: [ruby-dev:34393] fluent comma”
on Mon, 14 Apr 2008 23:39:19 +0900, “Yusuke ENDOH” [email protected]
writes:

|[ruby-core:16240] syntax request e\$B\$G!"9TF,\$N%3%s%^\$rA0\$N9T\$Ne(B
|e\$BB3\$-\$H8+\$J\$9J8K!3HD%\$,Ds0F\$5\$l\$F\$\$\$^\$9!#e(B
|
|foo( “foo”
| , “bar”
| , “baz”
| )
|
|h = { 1 => “1”
| , 2 => “2”
| , 3 => “3”
| }
|
|Haskell e\$BIw\$N%\$%s%G%s%H\$,2DG=\$K\$J\$j!"8+\$d\$9\$/JT=8\$7\$d\$9\$\$\$G\$9!#e(B

e\$B:G=i\$K\$3\$l\$rDs0F\$7\$??M\$b!Ve(BHaskelle\$B\$,[email protected]\$C\$F\$^\$7\$?!#e(B
e\$B\$=\$&\$\$\$&%9%?%\$%k\$J\$s\$G\$9\$M!#8D?ME*\$K\$O\$+\$J\$j5\$;}\$A0-\$\$\$s\$G\$9e(B
e\$B\$1\$I!#\$I\$C\$A\$+\$C\$F\$\$\$&\$He(BCe\$B\$N\$h\$&\$Je(B

h = { 1 => “1”,
2 => “2”,
3 => “3”,
}

e\$B\$NJ}\$,9%\$_\$G\$9\$M\$(!#K\Ev\$O3g8L\$NCf\$G\$O2~9T\$rL5;k\$9\$k\$H\$\$\$&\$Ne(B
e\$B\$,\$+\$C\$3\$\$\$\$\$J\$H;W\$C\$F\$\$\$k\$N\$G\$9\$,!"%M%9%H\$r9M\$(\$k\$He(BYACCe\$B\$G\$Oe(B
e\$B\$+\$J\$jL5M}\$=\$&!#e(B

|e\$B%3%s%^\$G\$bF1\$8\$h\$&\$K\$7\$F\$\$\$\$\$H;W\$&\$N\$G\$9\$,!"\$I\$&\$G\$7\$g\$&\$+!#e(B

e\$B\$b\$&\$A\$g\$C\$H\$\$\$m\$s\$J?M\$N0U8+\$rJ9\$-\$?\$\$\$G\$9!#e(B

e\$B\$3\$s\$K\$A\$O!#e(B

In message [email protected]
on Tue, 15 Apr 2008 12:31:38 +0900,
Yukihiro M. [email protected] wrote:

e\$B:G=i\$K\$3\$l\$rDs0F\$7\$??M\$b!Ve(BHaskelle\$B\$,[email protected]\$C\$F\$^\$7\$?!#e(B
e\$B\$=\$&\$\$\$&%9%?%\$%k\$J\$s\$G\$9\$M!#8D?ME*\$K\$O\$+\$J\$j5\$;}\$A0-\$\$\$s\$G\$9e(B
e\$B\$1\$I!#e(B
e\$B0lI<F~\$l\$^\$9!#e(B:-) [email protected]*\$KH?BP\$O\$7\$^\$;\$s\$,!#e(B

e\$BLZB<\$G\$9!#e(B

On Mon, 14 Apr 2008 23:39:19 +0900
“Yusuke ENDOH” [email protected] wrote:

[ruby-core:16240] syntax request e\$B\$G!"9TF,\$N%3%s%^\$rA0\$N9T\$Ne(B
e\$BB3\$-\$H8+\$J\$9J8K!3HD%\$,Ds0F\$5\$l\$F\$\$\$^\$9!#e(B

e\$B5\$;}\$A0-\$\$\$H\$\$\$&I=8=\$,2:Ev\$+\$I\$&\$+\$O5?Ld\$K;W\$\$\$^\$9\$,!"\$o\$6\$o\$6%5%]!<%He(B
[email protected]\$1\$N%a%j%C%H\$,\$"\$k\$h\$&\$K\$O\$"\$^\$j;W\$(\$J\$\$\$H\$\$\$&>C6KE*\$JH?BP\$Ne(B
e\$B0U;WI=<([email protected]\$1\$7\$F\$*\$-\$^\$9!#e(B

#e\$B\$"!<\$G\$b;;=Q<0\$G\$O\$3\$l\$HF1MM\$N%Q%?!<%s\$r<+J,\$b;H\$C\$F\$?\$j\$9\$k\$+e(B(Rubye\$B0J30e(B
e\$B\$Ge(B)?

[email protected]\$G\$9!#e(B

At Mon, 14 Apr 2008 23:39:19 +0900,
Yusuke ENDOH wrote in [ruby-dev:34393]:

``````, 3 => "3"
}
``````

Haskell e\$BIw\$N%\$%s%G%s%H\$,2DG=\$K\$J\$j!"8+\$d\$9\$/JT=8\$7\$d\$9\$\$\$G\$9!#e(B

e\$B\$(!+!<!<!<e(B

e\$B\$?\$^\$Ke(BSQLe\$B\$"\$?\$j\$G\$b\$=\$&\$\$\$&=q\$-J}\$r\$9\$k?M\$,\$\$\$k\$h\$&\$G\$9\$,!"8D?Me(B
e\$BE*\$K\$O\$+\$J\$j5\$;}\$A0-\$\$\$G\$9!#e(B

e\$B\$3\$s\$K\$A\$O!"\$J\$+\$`\$ie(B(e\$B\$&e(B)e\$B\$G\$9!#e(B

In message “[ruby-dev:34395] Re: fluent comma”
on Apr.15,2008 12:31:38, [email protected] wrote:

|e\$B%3%s%^\$G\$bF1\$8\$h\$&\$K\$7\$F\$\$\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]:

e\$B\$8\$c\$"\$J\$s\$Ge(B
foo
.bar
e\$B\$O5\$;}\$A0-\$/\$J\$\$\$s\$G\$9\$+e(B?e\$B26\$OF1\$8\$/[email protected]\$H;W\$&\$s\$G\$9\$,!#e(B

e\$BF10U\$7\$^\$9!#<B:]!"<+J,\$G;H\$&\$3\$H\$b\$J\$\$\$H;W\$\$\$^\$9!#e(B

pegacorn e\$B\$G\$9!#e(B

From: “Yusuke ENDOH” [email protected]
Date: Mon, 14 Apr 2008 23:39:19 +0900
Message-Id:
[email protected]
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``````, 3 => "3"
}
``````

Haskell e\$BIw\$N%\$%s%G%s%H\$,2DG=\$K\$J\$j!"8+\$d\$9\$/JT=8\$7\$d\$9\$\$\$G\$9!#e(B

e\$B;[email protected]\$7\$^\$9!#e(B

foo( “foo”,
“bar”,
“baz”
)

e\$B\$re(B

foo( “foo”
, “bar”
, “baz”
)

e\$B\$H=q\$1\$k\$H!"e(B
e\$B0z?t\$rDI2C\$7\$F9TC10L\$N:9J,\$r\$H\$C\$?;~\$K!"M>7W\$J:9J,\$,=P\$J\$\$\$N\$G!#e(B

foo( “foo”,
“bar”,

• ``````"baz"
``````
• ``````"baz",
``````
• ``````"add"
``````

)

e\$B"-e(B

foo( “foo”
, “bar”
, “baz”

• , “add”
)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs