Open misode opened 2 weeks ago
what if (I'm mostly trolling)
struct Foo {
min?: int @ ..[[max]],
max?: int @ [[min]]..,
}
Being able to specify ranges using types would help us with generics as well tbh...
type Foo<A> = struct {
min: int @ 0..A,
}
But yeah maybe that'd make it a bit too complicated
This attribute should allow us to compare two fields in a struct, something like this: