2 ms·
Is its function parameter passing really more obnoxious than python, which lets you mutate the default parameter across calls: def foo(bar=Bar(1)): Unless bar
by hedora 7y ago
Is its function parameter passing really more obnoxious than python, which lets you mutate the default parameter across calls:
def foo(bar=Bar(1)):
Unless bar is a primitive type, in which case each invocation gets the same value?
def foo(bar=1):
Perl wears its idiosyncrasies as badges of honor. Python keeps them hidden so they can sneak up on you when you least expect it.
- cutler 7y ago"Vell, zis is perfectly normal behaviour for a python", to rephrase Gag Halfront.