Talk:Y combinator: Difference between revisions

Line 65:
:''"Note that Perl 6 doesn't actually need a Y combinator because you can name anonymous functions from the inside"''
I cannot make sense of it as the Y combinator seems to be a way of adding recursion to mainly theoretical functional languages that don't allow variables holding state. I doubt if any of the RC languages actually ''need'' Y so it seems superfluous. --[[User:Paddy3118|Paddy3118]] 09:51, 11 September 2010 (UTC)
::Well, yes, it's superfluous if you want to use state variables instead, but the point is that the Perl&nbsp;6 construct allows you to continue to write in a stateless idiom if you so choose, and at least encode tail recursion without state. And if the Y combinator is used for other purposes, well, we can do that too... <tt>:-)</tt> --[[User:TimToady|TimToady]] 04:05, 12 September 2010 (UTC)
Anonymous user