Open kach opened 1 month ago
I like it. What if it was in the header?
@memo
def f[alice.x]():
cast: [alice]
alice: chooses(x in X, wpp=1)
return
i think i'm not as big a fan of that for three reasons
f[x: X, alice.x]():
looks weird.alice.x
at the top of the function when I as a reader don't even know what it is yet?Hmm, true, but I think it's important that it is specified somewhere in the header. I want the header to exactly reflect the shape of the returned tensor. Maybe something like this?
@memo
def f[posterior]():
cast: [alice]
alice: chooses(x in X, wpp=1)
return alice.x
what about having a magic
posterior
variable that can only be used in return statements?something like: