Feedback "Left side to right side" is a red herring 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Final exam Monday 4 December (Mike O'Donnell)
Re: Question ML / Datatypes Question (Set-Theoretic Notation) (Ben Johnson)
Date: 2000, Dec 04
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

Has anyone done anything in ML that would resemble functions which take an element from the left side to the right side?
I assume that you're referring to the fact that the B appears on the right-hand side of the first functional arrow in A->(B->C), but on the left-hand side in (AxB)->C. That's not the right point to focus on. Colloquially, it's a ``red herring''---an irrelevant point that leads your thinking astray. The B is on the left-hand side of the second arrow, and that turns out to be the important point.

The encodings between these two types are quite simple. If you can think intuitively about the meanings of the type expressions, you should be able to cook up the encodings. In this case, the need to write type-correct expressions is a big help in leading you toward the solution.



Mike O'D.


to: ""Left side to right side" is a red herring"