But I think they should give a syntax error, because for example I can't refer to the argument "class" in the first line (same reason why the first snippet gives a syntax error).
@nobu (Nobuyoshi Nakada) Is there any value to support such keyword arguments?
I think an early error might be less surprising here.
I've heard the example that Rails (maybe ActiveSupport?) had used if: as short for "interface". Binding#local_variable_get does not encourage to use such arguments.