diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
| commit | 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (patch) | |
| tree | b7193a8021ef9ab57c71319ecad797bf51849025 /README.md | |
| parent | 5910998a19aab5dab2c761aea946cfbb09a37918 (diff) | |
Syntax tweak: use ':' for blocks
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,12 +5,12 @@ language that cross-compiles to C. Tomo is designed to anticipate and influence the language design decisions of the future. ``` -func greeting(name:Text)->Text +func greeting(name:Text)->Text: greeting := "hello {name}!" words := greeting:split(" ") return " ":join([w:capitalize() for w in words]) -func main(name="World") +func main(name="World"): to_say := greeting(name) say(to_say) ``` |
