diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 14:44:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 14:44:15 -0400 |
| commit | f4b04a1b8cd882e25fee592c819650c9b7e8566b (patch) | |
| tree | dcecb8b4f83d569ebb00beb79988222d195b8f4c /test/enums.tm | |
| parent | 04603308af3a2984d42eaa9e301cac0ffbded2a4 (diff) | |
Improved syntax for dollar-string literals
Diffstat (limited to 'test/enums.tm')
| -rw-r--r-- | test/enums.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/enums.tm b/test/enums.tm index 65ef6398..b734d487 100644 --- a/test/enums.tm +++ b/test/enums.tm @@ -5,15 +5,15 @@ func choose_text(f:Foo)->Text: when f is Zero: return "Zero" is One(one): - return "One: {one}" + return "One: $one" is Two(x, y): - return "Two: x={x}, y={y}" + return "Two: x=$x, y=$y" is Three(three): - return "Three: {three}" + return "Three: $three" is Four: return "Four" else: - return "else: {f}" + return "else: $f" func main(): >> Foo.Zero |
