-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i don't understand a sentence #77
Comments
(@raganwald, it may be beneficial to have some way to differentiate the term "decorator"s as a subset of combinator functions, taking a single function as input, from the design pattern named "decorator" -- which many dynamic languages, like JavaScript, give you for free as a language feature. Anytime you are adding an arbitrary object property, that the "class" of the object isn't designed for, you are using the "decorator" design pattern.) |
Perhaps I may mention it. What interests me is what the two have in common, not how they differ. A similar pattern is the "trait," a mixin for a class that adds functionality without using any private object state. |
Thank you. I will try to be more precise : the second part of the sentence does not make sense to me : "you do have to be careful that you are calling the function once returns multiple times". But maybe it is just because English is not my native language. |
Hi,
I don't understand this sentence in https://github.com/raganwald/javascript-allonge/blob/master/manuscript/markdown/Instances%20and%20Classes/recipes/named-once.md :
"As we noted when we saw the recipe for once, you do have to be careful that you are calling the function once returns multiple times."
The text was updated successfully, but these errors were encountered: