4 ms·
Would it be possible to make something better than Hello World that would showcase even more of the universal standard features of programming languages? Any i
by brador 10y ago
Would it be possible to make something better than Hello World that would showcase even more of the universal standard features of programming languages?
Any ideas?
Maybe calculate the first 10 primes and output the result? Something like that...
- dragonwriter 10y agoThat's kind of the point of Rosetta Code. http://rosettacode.org/wiki/Rosetta_Code http://rosettacode.org/wiki/Rosetta_Code
- _asummers 10y agoIt should be several examples, each showing one of the following: Iterating over infinite lists (generators, lazy seq, whatever), polymorphism (if applicable), pattern matching (if applicable), how one would pass functions around, how one would manipulate a date, how one would read and write to a file, how one would make an http request (with some error handling!), traits/mixins (or similar, if applicable) concurrency, parallelism, and use of built in List, Map data structures. While not exhaustive, to me those feel like common building blocks to my day that would showcase how easy it is to do things in a language.