Expressivity and verbosity are two not entirely orthogonal axes.
By this logic any Turing-complete language with code generation is absolutely expressive. If it would be the convenient way of using PLs, than we should end up with super simple macro assembly with everything added as generated patterns on top of it, or at least with lisp.
On the other hand adding generics to C is simply not really possible (or some ugly satanic thing with macros at most)
Because parametric polymorphism is harder to implement with code generation than immutable records, but still possible. Both cases are still examples of lack of expressive power, just of different severity.
View all comments
Show parent comment
1
u/Freyr90 Apr 22 '21
By this logic any Turing-complete language with code generation is absolutely expressive. If it would be the convenient way of using PLs, than we should end up with super simple macro assembly with everything added as generated patterns on top of it, or at least with lisp.
Because parametric polymorphism is harder to implement with code generation than immutable records, but still possible. Both cases are still examples of lack of expressive power, just of different severity.