[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — [email protected]
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:68200] [Ruby trunk - Bug #10870] Hash Literal Declined As First Argument
From:
imranwebpost@...
Date:
2015-02-20 18:30:45 UTC
List:
ruby-core #68200
Issue #10870 has been updated by Imran "".
Thanks.
----------------------------------------
Bug #10870: Hash Literal Declined As First Argument
https://bugs.ruby-lang.org/issues/10870#change-51569
* Author: Imran ""
* Status: Rejected
* Priority: Normal
* Assignee:
* ruby -v: 2.0.0-p481
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
When a hash literal is passed as first argument to a method, Ruby throws a syntax error.
Example code:
~~~ruby
def foo *args
p args
end
foo 'Hello'
foo 123
foo ['Hello', 123]
foo {:hello => 123} # Syntax Error: Unexpected => Expecting }
~~~
However, shifting hash literal over to second place, somehow makes it all legal.
~~~ruby
foo 'Unnecessary 1st Argument', {:hello => 123} # Error gone
~~~
Cheers.
--
https://bugs.ruby-lang.org/