miniblog.

← Back to all posts
35
I'm trying to decide what program I should show on the home page of my PL. Hello World is too simple to show much syntax. Fibonacci is OK but the reader may not know what print(fib(10)) should show. Maybe print(greet("World")) is better? It gives you a function definition at least.

5 Comments

@wilfredh fizzbuzz?
@wilfredh I like the code examples on https://raku.org/ That gives the reader a good understanding of what the language looks like.
@wilfredh 99 bottles is a "Hello World" style classic with a bit more flavour.
@aburka That might actually be the sweet spot! Simple, well known, slightly less trivial.