Rosetta Code:Village Pump/useless tasks for pure synthax comparison

From Rosetta Code
Revision as of 18:53, 25 April 2021 by rosettacode>Galmeida (Created page with "{{Vptopic |topic='useless' tasks for pure synthax comparison |summary=New learning approach }} I think it would be more useful if there were 'useless' tasks defined with the s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
useless tasks for pure synthax comparison
This is a particular discussion thread among many which consider Rosetta Code.

Summary

New learning approach

Discussion

I think it would be more useful if there were 'useless' tasks defined with the sole purpose of being quick synthax guides by comparison and we could chose a pair of languages put the scripts side by side (literally - I mean, horizontally). So you could take a language you know and quickly get the equivalent structures in another language. For instance - we define a script which contains a class definition, with stance attributes and methods, static attributes and methods, inheritance, interfaces etc - ONE OF EACH, ONLY. Then create a main method containing the main control structures - if+else, for, while etc, one of each main variable type, the default 'print to console' method ..- the most you can 'pack' together and cover a large number of the most popular languages. What do yo think?