anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
457 stars 53 forks source link

Allow final semicolons everywhere #3039

Closed lukaszcz closed 2 weeks ago

lukaszcz commented 2 months ago

We've discussed that it's more convenient to always allow final semicolons and format to insert them for consistency (except perhaps when the separated thing fits on a single line).

So we would have:

mk@{
  a := 1;
  b := 2;
}

and

[
 1;
 2;
 3;
]

but

[1; 2; 3]

and

case x of
| mk@{a := 1; b := 2} := ..

if the semicolon-separated list is formatted on a single line.

lukaszcz commented 3 weeks ago