4 ms·
Should have mentioned call along with apply. Not sure these are patterns rather than just language features.
by user24 14y ago
Should have mentioned call along with apply.
Not sure these are patterns rather than just language features.
- cjfont 14y agoI agree, this is similar to saying that i+=1 and i++ are increment patterns.
- andrewflnr 14y agoWell, yes, except complicated enough to merit more explanation.
- bengillies 14y agoExactly. Stuff that's built directly into the language isn't a pattern, it's a feature (perhaps a wart in this case). From Wikipedia [1]: In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is not a finished design that can be transformed directly into source or machine code. It is a description or template for how to solve a problem that can be used in many different situations. Patterns are formalized best practices that the programmer must implement themselves in the application. [1] http://en.wikipedia.org/wiki/Software_design_pattern http://en.wikipedia.org/wiki/Software_design_pattern