From f4b04a1b8cd882e25fee592c819650c9b7e8566b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 18 Aug 2024 14:44:15 -0400 Subject: Improved syntax for dollar-string literals --- test/corecursive_func.tm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/corecursive_func.tm') diff --git a/test/corecursive_func.tm b/test/corecursive_func.tm index a5c13dde..168300d4 100644 --- a/test/corecursive_func.tm +++ b/test/corecursive_func.tm @@ -1,14 +1,14 @@ func ping(x:Int)->[Text]: if x > 0: - return ["ping: {x}"] ++ pong(x-1) + return ["ping: $x"] ++ pong(x-1) else: - return ["ping: {x}"] + return ["ping: $x"] func pong(x:Int)->[Text]: if x > 0: - return ["pong: {x}"] ++ ping(x-1) + return ["pong: $x"] ++ ping(x-1) else: - return ["pong: {x}"] + return ["pong: $x"] func main(): >> ping(3) -- cgit v1.2.3