issues
search
google-research
/
dex-lang
Research language for array processing in the Haskell/ML family
BSD 3-Clause "New" or "Revised" License
1.58k
stars
106
forks
source link
More struct features
#1261
Closed
dougalm
closed
1 year ago
dougalm
commented
1 year ago
[x] Tuple projection with
x.0
,
x.1
[x] Pun type constructors and data constructors for types (like we do with tuples) instead of writing
Foo.new(...)
[x] Project (i.e. slice) references to structs using the struct's field names
[x] Allow user-defined dot-accessed methods on structs and ADTs, like
stack.push(...)
x.0
,x.1
Foo.new(...)
stack.push(...)