notes on an obvious deficiency

This commit is contained in:
Pat Garrity 2026-01-16 22:38:43 -06:00
parent 66cb0ff1a6
commit 2c250c161a
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76

View file

@ -137,6 +137,11 @@ begin def demo: List[Boolean]
let foo1 = Foo(1, MagicNumber) let foo1 = Foo(1, MagicNumber)
let foo2 = Foo(1, 3) let foo2 = Foo(1, 3)
let foo3 = Foo(x = 1, y = MagicNumbe) let foo3 = Foo(x = 1, y = MagicNumbe)
-- The first class list construction is not satisfying:
-- - It collides with type constructors.
-- - It collides with () for grouping.
-- How can I resolve this? Maybe look into tuple syntax and other literals
-- and see if that provides any ideas. Or give up on first class lists.
let stuff = [foo1, foo2] let stuff = [foo1, foo2]
ex1(stuff, foo3) ex1(stuff, foo3)
end def end def