Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
legal casts #177
Currently we write:
But we allow tuples and lists to be assigned to struct/headers. So it seems that this should be generalized to struct/header/tuple/lists too?
FWIW, the implementation is stricter than I'd expect as a programmer:
I think that this claim is not implemented as described in the compiler.
Indeed, the type of a ListExpression in the compiler is a tuple, and we allow tuples to be assigned to structs and headers. We have an open issue about assigning lists to headers.
So this paragraph has to be expanded.