refactor decl grammar to be more Rust like
nikomatsakis opened this issue · comments
Niko Matsakis commented
Niko Matsakis commented
Some examples that came up in discussion today:
To represent static S: Foo = f-body
, instead of
(StaticDecl (term (S (static () () (rigid-ty Foo ()) fn-body))))
we could do
(StaticDecl (term (static S () : (rigid-ty Foo ()) = fn-body where ())))
Note that this syntax supports generic statics/consts with where-clauses :)