Forum: Ruby-core [ruby-trunk - Bug #8670][Open] "100do" should be a syntax error

89d887b50262bbe10225d36d974fdb0c?d=identicon&s=25 whitequark (Peter Zotov) (Guest)
on 2013-07-23 11:18
(Received via mailing list)
Issue #8670 has been reported by whitequark (Peter Zotov).

----------------------------------------
Bug #8670: "100do" should be a syntax error
https://bugs.ruby-lang.org/issues/8670

Author: whitequark (Peter Zotov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
In certain contexts, `do' adjacent to a number can be parsed as a
distinct token instead of syntax error.

For example:

(({Shoes.app width: 330do end}))
=end
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2013-07-24 04:12
(Received via mailing list)
Issue #8670 has been updated by nobu (Nobuyoshi Nakada).

Category set to syntax
Status changed from Open to Assigned
Assignee set to matz (Yukihiro Matsumoto)
Priority changed from Normal to Low
Target version set to current: 2.1.0

I've thought it's a spec.
----------------------------------------
Bug #8670: "100do" should be a syntax error
https://bugs.ruby-lang.org/issues/8670#change-40632

Author: whitequark (Peter Zotov)
Status: Assigned
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: syntax
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
In certain contexts, `do' adjacent to a number can be parsed as a
distinct token instead of syntax error.

For example:

(({Shoes.app width: 330do end}))
=end
9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2013-07-24 04:20
(Received via mailing list)
Issue #8670 has been updated by naruse (Yui NARUSE).


nobu (Nobuyoshi Nakada) wrote:
> I've thought it's a spec.

I think so too and it should be.
----------------------------------------
Bug #8670: "100do" should be a syntax error
https://bugs.ruby-lang.org/issues/8670#change-40633

Author: whitequark (Peter Zotov)
Status: Assigned
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: syntax
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
In certain contexts, `do' adjacent to a number can be parsed as a
distinct token instead of syntax error.

For example:

(({Shoes.app width: 330do end}))
=end
0ec4920185b657a03edf01fff96b4e9b?d=identicon&s=25 matz (Yukihiro Matsumoto) (Guest)
on 2013-07-24 05:59
(Received via mailing list)
Issue #8670 has been updated by matz (Yukihiro Matsumoto).

Status changed from Assigned to Rejected

It's spec.  Ruby does not require spaces when it's clear.

Matz.

----------------------------------------
Bug #8670: "100do" should be a syntax error
https://bugs.ruby-lang.org/issues/8670#change-40640

Author: whitequark (Peter Zotov)
Status: Rejected
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: syntax
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
In certain contexts, `do' adjacent to a number can be parsed as a
distinct token instead of syntax error.

For example:

(({Shoes.app width: 330do end}))
=end
This topic is locked and can not be replied to.