2 ms·
Totally agree. Functions are a design pattern in assembler, but a language feature checked by the compiler in more advanced languages. Classes are design patt
by Shorel 10y ago
Totally agree.
Functions are a design pattern in assembler, but a language feature checked by the compiler in more advanced languages.
Classes are design pattern in C (called ADTs), but a language feature in all OOP languages.
Generalizing the concept: A design pattern is something the programmer has to check himself/herself for correctness, instead of being automatically checked by the compiler or interpreter.