From: Yukihiro Matsumoto Date: 2005-07-19T21:12:05+09:00 Subject: Re: [RCR] nil for unassigned keys Hi, In message "Re: [RCR] nil for unassigned keys" on Tue, 19 Jul 2005 20:40:47 +0900, Simon Strandgaard writes: |Sometimes I find myself writing :key=>true, |it would be nice if one didn't had to do assignment, |so its value instead defaulted to nil. | |def test(hash={}) | p hash |end | |test('x', 'y'=>2, 'z') # {"x"=>nil, "y"=>2, "z"=>nil} In that case, how can we distinguish a hash key without value and ordinal mandatory argument? matz.