Hacker News new | ask | show | jobs
by infraruby 3693 days ago
The caller may pass nil explicitly.
1 comments

I don't understand. You may still pass nil explicitly if the argument defaults to 16?
Yes:

  def f(n = 16)
    n
  end

  p f # => 16
  p f(nil) # => nil