Hacker News new | ask | show | jobs
by cess11 804 days ago
'Multi-paradigm' languages are quite old, like Lisp.

Got closures? Then you've got objects.

Can you write code that's executed sequentially? Then you've got imperative programming.

Can you pass a function as a parameter to another? That's pretty functional.

Having this in a language has been common for decades. But there are more paradigms, notably 'macro-oriented' programming and logic programming. Are these well supported in Rust and Nim? If not, then they aren't as "beyond paradigms" as Lisp.

There's arguably several forms of object oriented languages too, besides what might be called Java/C++/Python style there's message passing Smalltalk style and prototype style as in JavaScript and its parent. Would probably need to support these styles too, to be "beyond paradigms".

Assembler could also be considered a programming paradigm, so we'd need to support that too.

And if logic programming is a paradigm, constraint programming likely is another. Glue or shell programming yet another.

And so on and so on.