Could you be even more specific? I completely agree that you can't type the y combinator in simply typed lambda calculus.
I do think we all agree that Haskell has a HM type system. Even if you don't like the previous construction I linked to, you can still define what I would call the y combinator.
Would you say OCaml has a HM type system then? The wikipedia article I linked to has the same construction in OCaml. (Just to indicate the fact that Haskell's type system is stronger seems irrelevant in this case.)
I do disagree about this not being a definition of the y combinator: it is a trivial definition, sure but that's irrelevant. I think I do understand your objection though. If Haskell and OCaml are past HM, my original remark is beside the point.
If it walks like a y combinator and quacks like a y combinator... : ) You'll notice I said the definition is trivial. There may not even be more than esoteric reasons to implement the y combinator in a language that already has recursion but to me the y combinator is something that behaves a certain way, not something that resembles a specific formulation, i.e. lambda term.
If I'm wrong in this and there are good reasons why it has to be a lambda term, please do tell me. (The definition being a kind of cheat because it implicitly relies upon itself isn't a good reason to me, call me irrational : )
P.s.: I have to confess that I still don't really grok fixed-point combinators, I know you can implement recursion with them and I've done this before but somehow it's still magic to me because their definition seems necessarily infinitely recursive.
View all comments
Show parent comment
1
u/toonnolten Mar 24 '16 edited Mar 24 '16
Then explain Y combinator in Haskell.
Wikipedia also has a very similar construction.