derrick white
unread,Apr 8, 2011, 4:48:23 PM4/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to byu-cs-330-Winter-2011
On the website for the type inferrer, there is found the following
notification:
the following are not legal:
(rec (f f)
....)
(rec (f (+ 1 f))
....)
however, I do not see a fundemental type error in (rec (f (+ 1
f)) ...). Yes, its a recursive mess, but the type inferrer should say
that f is a number because the addition is a number, and the addition
is a number because one and f and numbers.
Should Unify be catching the illegal use of f (I don't think so),
should parse be catching it, or should generate-constraints be
catching it. What kind of an error is this technically?