3 ms·
In imperative languages without macros, it might be difficult to abstract structural similarity, like a common if statement. In functional languages, where eve
by js8 6y ago
In imperative languages without macros, it might be difficult to abstract structural similarity, like a common if statement.
In functional languages, where every statement is a function, this is often easier.
- jayd16 6y agoYou can write your method in a functional style in the popular imperative languages. This can stretch how DRY you can be a bit further.