From 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 28 Apr 2024 14:58:55 -0400 Subject: Syntax tweak: use ':' for blocks --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 73e2160f..2e9c6037 100644 --- a/README.md +++ b/README.md @@ -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) ``` -- cgit v1.2.3