In parse, generate constraints, and infer type, we have to show a test
case with a valid id expression.
For parse that's simple (parse 'x) should be (id 'x). But for generate
constraints and infer type it seems to me that they should crash
unless there is a with involved as well but I just wanted to make sure
that that was correct.
I could imagine that if you did (generate constraints 'start (parse
'x)) it could give you something like (list (eqc (t-var 'x1) (t-var
'x1))) but mine doesn't because it calls alpha-vary first and
alpha-vary throws an error when there is an unbound identifier.
infer-type will have the same problem.
So my question is, should generate-contsraints and infer-type throw
errors when they are just given (parse 'x)?
Nathan
Jay
In parse, generate constraints, and infer type, we have to show a test
case with a valid id expression.
For parse that's simple (parse 'x) should be (id 'x). But for generate
constraints and infer type it seems to me that they should crash
unless there is a with involved as well but I just wanted to make sure
that that was correct.
I could imagine that if you did (generate constraints 'start (parse
'x)) it could give you something like (list (eqc (t-var 'x1) (t-var
'x1)))
but mine doesn't because it calls alpha-vary first and
alpha-vary throws an error when there is an unbound identifier.
infer-type will have the same problem.
So my question is, should generate-contsraints and infer-type throw
errors when they are just given (parse 'x)?
Nathan