Skip to content

Commit 2a6723b

Browse files
committed
Trailing commas
1 parent 125750a commit 2a6723b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Parameter and argument lists are allowed to have trailing commas in Pluto.
2+
3+
```pluto
4+
local function print_favs(
5+
color: string,
6+
food: string,
7+
)
8+
print($"My favorite color is {color}, and my favorite food is {food}!")
9+
end
10+
11+
print_favs(
12+
"red",
13+
"pizza",
14+
) --> My favorite color is red, and my favorite food is pizza!
15+
```

0 commit comments

Comments
 (0)