I have worked on different programming language / frameworks mostly for web development tasks. Here are list of tasks which seems to be common across all programming language, syntax is different but semantic remains almost same across programming language
- Variable declaration or assignment
- Loop construct like while, for.
- Function declaration or return
- Meta programming support
- Import / Exporting the function or file
Top comments (2)
Some languages don't have loops - recursion has to be used instead (e.g. Erlang, Haskell).
While many languages are statement based others use only expressions: expressions vs statements.
Yeah, mostly functional language do not have inbuilt loop, it need to be implemented through recursion.