HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by infraruby | Hacker News Reader
Parent
Full thread
infraruby
·
The caller may pass nil explicitly.
View on HN
goldbrick
·
I don't understand. You may still pass nil explicitly if the argument defaults to 16?
infraruby
·
Yes:
def f(n = 16) n end p f # => 16 p f(nil) # => nil
Reply on news.ycombinator.com