Project

General

Profile

Bug #15647

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

"`in`" "in" is a reserved reversed keyword and thus can't be accessed directly anyway. 

 e.g. the following is a syntax error: 

 ```ruby 
 def `def m(in:); p in; end; m(in: 1) 
 ``` 1)` 

 And as usual, doing `in = 1` doesn't work. 

 "`in`" "in" could still be passed as a keyword argument if using some kind of catch-all, e.g. `m(args)`, `m(*args)`, m(args), m(*args), etc. 

 Source: https://twitter.com/drbrain/status/1104152696339087361

Back