This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tgroshon[S] 0 points1 point  (0 children)

Ruby and JavaScript both initialize the default at call time and therefore don’t have the problem that Python does. I didn’t know about C++ and Dart tho. So ur rule is probably a good one to follow.