* [ruby-core:65334] [ruby-trunk - Bug #10309] [Open] Unexpected keyword parameters becomes an additional mandatory parameter
[not found] <redmine.issue-10309.20141001064418@ruby-lang.org>
@ 2014-10-01 6:44 ` ko1
2014-10-01 8:07 ` [ruby-core:65335] [ruby-trunk - Bug #10309] [Rejected] " ko1
2014-10-01 8:29 ` [ruby-core:65336] [ruby-trunk - Bug #10309] " ko1
2 siblings, 0 replies; 3+ messages in thread
From: ko1 @ 2014-10-01 6:44 UTC (permalink / raw
To: ruby-core
Issue #10309 has been reported by Koichi Sasada.
----------------------------------------
Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameter
https://bugs.ruby-lang.org/issues/10309
* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2 to 2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Is it an intentional behaviour?
```ruby
def foo a, b, c, k1: 1
p [a, b, c, k1]
end
foo 1, 2, {k1: 3, k2: 4}
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
foo 1, 2, k1: 3, k2: 4
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:65335] [ruby-trunk - Bug #10309] [Rejected] Unexpected keyword parameters becomes an additional mandatory parameter
[not found] <redmine.issue-10309.20141001064418@ruby-lang.org>
2014-10-01 6:44 ` [ruby-core:65334] [ruby-trunk - Bug #10309] [Open] Unexpected keyword parameters becomes an additional mandatory parameter ko1
@ 2014-10-01 8:07 ` ko1
2014-10-01 8:29 ` [ruby-core:65336] [ruby-trunk - Bug #10309] " ko1
2 siblings, 0 replies; 3+ messages in thread
From: ko1 @ 2014-10-01 8:07 UTC (permalink / raw
To: ruby-core
Issue #10309 has been updated by Koichi Sasada.
Status changed from Open to Rejected
Ah, I'm sorry. It is duplicated ticket (I can't find another ticket).
My misunderstanding.
----------------------------------------
Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameter
https://bugs.ruby-lang.org/issues/10309#change-49150
* Author: Koichi Sasada
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2 to 2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Is it an intentional behaviour?
```ruby
def foo a, b, c, k1: 1
p [a, b, c, k1]
end
foo 1, 2, {k1: 3, k2: 4}
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
foo 1, 2, k1: 3, k2: 4
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:65336] [ruby-trunk - Bug #10309] Unexpected keyword parameters becomes an additional mandatory parameter
[not found] <redmine.issue-10309.20141001064418@ruby-lang.org>
2014-10-01 6:44 ` [ruby-core:65334] [ruby-trunk - Bug #10309] [Open] Unexpected keyword parameters becomes an additional mandatory parameter ko1
2014-10-01 8:07 ` [ruby-core:65335] [ruby-trunk - Bug #10309] [Rejected] " ko1
@ 2014-10-01 8:29 ` ko1
2 siblings, 0 replies; 3+ messages in thread
From: ko1 @ 2014-10-01 8:29 UTC (permalink / raw
To: ruby-core
Issue #10309 has been updated by Koichi Sasada.
Related to Bug #10142: named params don't always capture passed named args added
----------------------------------------
Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameter
https://bugs.ruby-lang.org/issues/10309#change-49151
* Author: Koichi Sasada
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2 to 2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Is it an intentional behaviour?
```ruby
def foo a, b, c, k1: 1
p [a, b, c, k1]
end
foo 1, 2, {k1: 3, k2: 4}
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
foo 1, 2, k1: 3, k2: 4
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-01 8:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-10309.20141001064418@ruby-lang.org>
2014-10-01 6:44 ` [ruby-core:65334] [ruby-trunk - Bug #10309] [Open] Unexpected keyword parameters becomes an additional mandatory parameter ko1
2014-10-01 8:07 ` [ruby-core:65335] [ruby-trunk - Bug #10309] [Rejected] " ko1
2014-10-01 8:29 ` [ruby-core:65336] [ruby-trunk - Bug #10309] " ko1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).