You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to catla...@googlegroups.com
In Cat, 'id' is assigned the type 'a -> a'. I'm curious why it isn't 'A -> A'. In other words, why does 'id' require there be anything on the stack? I would've assumed the meaning of 'id' to be "returns the stack unchanged" rather than "returns the top value of the stack unchanged".
- John
Christopher Diggins
unread,
Apr 26, 2008, 11:03:42 AM4/26/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to catla...@googlegroups.com
Hi John,
The "id" operation is used just to simplify certain type signatures. In reality it doesn't vary from the the "noop" operation: