Type of =

30 views
Skip to first unread message

nha...@gmail.com

unread,
Jun 6, 2022, 2:29:11 PM6/6/22
to Shen
Should = not have type (A --> B --> boolean) instead of (A --> A --> boolean)?

The same runtime value is able to have multiple types.

The use case is where one of the sides of the equality test has a skolemized type variable and isn't known at compile time, being dynamically discovered at some later point, and the other side is some known constant.


Mark Tarver

unread,
Jun 7, 2022, 7:08:00 PM6/7/22
to Shen
there is a variant of = which is == which does have the type  (A --> B --> boolean)

M.

Reply all
Reply to author
Forward
0 new messages