Y
Hacker News
new
|
ask
|
show
|
jobs
by
pzmarzly
978 days ago
The good old let-over-lambda
http://www.csci.viu.ca/~wesselsd/courses/csci330/slides/lol....
. Now, in JS AFAIK this causes high memory usage, as "methods" are separate for each instance.
1 comments
bandrami
978 days ago
Love that book. Particularly the fact that the method-to-function mapping doesn't have to be one-to-one. You can always implement multiple methods in a single function (and for prototyping with closures this is usually a good idea).
link