* [ruby-dev:47153] [ruby-trunk - Feature #8061][Open] 重複するキーワードをエラーにする
@ 2013-03-10 0:53 tadf (tadayoshi funaba)
2013-03-10 8:14 ` [ruby-dev:47160] [ruby-trunk - Feature #8061] 重複するキーワードをエラーにする mame (Yusuke Endoh)
0 siblings, 1 reply; 2+ messages in thread
From: tadf (tadayoshi funaba) @ 2013-03-10 0:53 UTC (permalink / raw
To: ruby developers list
Issue #8061 has been reported by tadf (tadayoshi funaba).
----------------------------------------
Feature #8061: 重複するキーワードをエラーにする
https://bugs.ruby-lang.org/issues/8061
Author: tadf (tadayoshi funaba)
Status: Open
Priority: Low
Assignee:
Category:
Target version: next minor
重複するキーワードをエラーにする。
def m(a:1, b:2)
p [a, b]
end
m(a:8, a:9)
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-dev:47160] [ruby-trunk - Feature #8061] 重複するキーワードをエラーにする
2013-03-10 0:53 [ruby-dev:47153] [ruby-trunk - Feature #8061][Open] 重複するキーワードをエラーにする tadf (tadayoshi funaba)
@ 2013-03-10 8:14 ` mame (Yusuke Endoh)
0 siblings, 0 replies; 2+ messages in thread
From: mame (Yusuke Endoh) @ 2013-03-10 8:14 UTC (permalink / raw
To: ruby developers list
Issue #8061 has been updated by mame (Yusuke Endoh).
Assignee set to matz (Yukihiro Matsumoto)
キーワード引数の実体はハッシュなので、
{ a: 1, a: 2 } #=> { :a => 2 }
がエラーでない以上、これもエラーにならない方が仕様として単純で好きですが、
明らかにミスっぽいケースを検出してあげるのもありですかね。
m(:a => 8, eval(":a") => 9)
h = { a: 8 }; m(**h, a: 9)
などはどうするかと合わせて、matz に。
--
Yusuke Endoh <mame@tsg•ne.jp>
----------------------------------------
Feature #8061: 重複するキーワードをエラーにする
https://bugs.ruby-lang.org/issues/8061#change-37449
Author: tadf (tadayoshi funaba)
Status: Open
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category:
Target version: next minor
重複するキーワードをエラーにする。
def m(a:1, b:2)
p [a, b]
end
m(a:8, a:9)
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-10 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 0:53 [ruby-dev:47153] [ruby-trunk - Feature #8061][Open] 重複するキーワードをエラーにする tadf (tadayoshi funaba)
2013-03-10 8:14 ` [ruby-dev:47160] [ruby-trunk - Feature #8061] 重複するキーワードをエラーにする mame (Yusuke Endoh)
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).