4 ms·
I don't understand. You may still pass nil explicitly if the argument defaults to 16?
by goldbrick 10y ago
I don't understand. You may still pass nil explicitly if the argument defaults to 16?
- infraruby 10y agoYes: def f(n = 16) n end p f # => 16 p f(nil) # => nil