You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure exactly when we'd want this, but I wanted to write it down.
As with puns, there needs to be restrictions that allow us to keep the ValueTree in sync across puns. In the case of ValueTree we require there to be an equal number of Values (primitives + enum tags) produced (so [u32; 2] can pun (u32, u32), but u64 can't). So the above example might be an invalid fun.
We support type puns...
abi-cafe/include/tests/procgen/pun/MetersU32.procgen.kdl
Lines 4 to 15 in 6a7db03
Why not function puns?
I'm not sure exactly when we'd want this, but I wanted to write it down.
As with puns, there needs to be restrictions that allow us to keep the ValueTree in sync across puns. In the case of ValueTree we require there to be an equal number of Values (primitives + enum tags) produced (so
[u32; 2]
can pun(u32, u32)
, butu64
can't). So the above example might be an invalidfun
.A more realistic
fun
might be "varargs vs not".The text was updated successfully, but these errors were encountered: