Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pedro3005
· 15y ago · 0 comments
You can use this trick for memoization. Example:
http://paste.pocoo.org/show/341849/
Comments
[–]
code_duck
15y ago
The article is right, though, in stating that later viewers of your code may not be expecting this behavior, and it culd lead to problems.
[–]
underwater
15y ago
Memorization is an implementation detail and shouldn't be part of the arguments list.