91
What the F#
(whatthefsharp.com)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Python item 1
got an audible wtf from me... Been using python for years, totally unaware.
Mutating function arguments is pretty wtf to begin with.
true, and i can't think of a legitimate case where it would have tripped me up. but if someone, a novice perhaps, wrote
i think they would be within their rights to be surprised that calling this function twice has different results. that's what i was surprised by; it feels like bar would be re initialised each time with a scope of the function but apparenty not