Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore copy and update syntax #646

Open
CohenArthur opened this issue Feb 6, 2024 · 1 comment
Open

Explore copy and update syntax #646

CohenArthur opened this issue Feb 6, 2024 · 1 comment
Labels
design Issue or concerns regarding jinko's design parser Parser issue

Comments

@CohenArthur
Copy link
Member

type Record(a: int, b: int);

where foo = Record(a: 1, b: 2);
where bar = foo <- a: 15;  // Record(15, 2)
where baz = foo <- a: 16 <- b: 18; // Record(16, 18)
@CohenArthur CohenArthur added design Issue or concerns regarding jinko's design parser Parser issue labels Feb 6, 2024
@CohenArthur
Copy link
Member Author

type Record(a: int, b: int);

where foo = Record(a: 1, b: 2);
where bar = foo with a = 15;
where baz = foo with a = 16 with b = 18;
type Record(a: int, b: int);

where foo = Record(a: 1, b: 2);
where bar = foo with a: 15;
where baz = foo with a: 16 with b: 18;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Issue or concerns regarding jinko's design parser Parser issue
Projects
None yet
Development

No branches or pull requests

1 participant