@pointlessone@status.pointless.one
Post #2218782
2026-02-15 09:03 UTC
@roguelazer@hachyderm.io @jplatte@social.tchncs.de
Scope question is interesting.
For example, in Ruby you can reference other arguments for default values:
def example(arg1, arg2 = arg1)
#…
end
Which roughly (not really) translates to the following:
def example(arg1, arg2 = nil)
arg2 ||= arg1
#…
end
Replies (0)
No replies.