notes on an obvious deficiency
This commit is contained in:
parent
66cb0ff1a6
commit
2c250c161a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue