Skip to content

Commit 1ecc058

Browse files
committed
doc
1 parent 9b0aba6 commit 1ecc058

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Init/NotationExtra.lean

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,15 @@ macro:50 e:term:51 " matches " p:sepBy1(term:51, " | ") : term =>
335335
end Lean
336336

337337
/-- `{ a, b, c }` syntax, powered by the `Singleton` and `Insert` typeclasses. -/
338+
/-
339+
We use `withPosition` despite the parenthesized context because
340+
```
341+
{ aaa
342+
bbb }
343+
```
344+
otherwise could be either a two-field structure or a singleton set, which seems way too confusing
345+
even when the elaborator can disambiguate the two.
346+
-/
338347
syntax "{" withPosition(term),+ "}" : term
339348

340349
macro_rules

0 commit comments

Comments
 (0)