|
|
|
|
|
by TheDong
1041 days ago
|
|
> The Haskell is beautiful to look at too. As you might expect for a moderately complicated topic, ChatGPT is hallucinating. That is beautiful because it is not the Y combinator. That is the Fixed-point combinator. The Y combinator is used to implement recursion when you can't directly reference the function binding. In the haskell solution, y is used recursively on the rhs, so it's not the Y combinator, and so it's defining something different and simpler, so of course it looks different and simpler. Do not trust ChatGPT without first giving it a brief bit of thought yourself. And also, please don't just post ChatGPT's ramblings here if you have nothing worth adding. Most of us, I think, are here for human discussions, not to talk to chatGPT indirectly. If I wanted chatgpt's ramblings, I would go to that site instead. |
|