4 ms·
I agree with you in spirit, but I think your argument for why design patterns aren't present in functional languages can also be used to argue that there are no
by crntaylor 14y ago
I agree with you in spirit, but I think your argument for why design patterns aren't present in functional languages can also be used to argue that there are no design patterns in object oriented languages, just by replacing the word "function" with the word "object". Witness:
Thinking that objects are special is contrary to the spirit of object-oriented programming. Objects and numbers are the same class of citizens, and a method taking an object should not be treated differently from one that takes a number.
Would you also argue that there are no (or very few) design patterns in object oriented languages?
- sold 14y agoI was trying to say that using higher-order functions (or functions taking objects) is not automatically a design pattern; a pattern must consist of a larger group of code. Patterns show up where abstractions provided by language are not powerful enough to capture analogies.