5 ms·
Eric Lippert says the yield construct is the most complex of the C# language[1], how hard was it? I just tried a yield in a recursive function and the output i
by jacabado 13y ago
Eric Lippert says the yield construct is the most complex of the C# language[1], how hard was it?
I just tried a yield in a recursive function and the output is as simple as a non-recursive function. Are there any edge cases interesting to see?
[1]http://blogs.msdn.com/b/ericlippert/archive/2009/08/24/iterator-blocks-part-seven-why-no-anonymous-iterators.aspx http://blogs.msdn.com/b/ericlippert/archive/2009/08/24/itera...
- bnjmn 13y agoRe: how hard, I've been working on it for... a while ;) https://twitter.com/benjamn/status/331923303767867392 https://twitter.com/benjamn/status/331923303767867392 Re: unforeseen edge cases, I'd love to see any failing pull requests for the test suite: https://github.com/facebook/regenerator/blob/master/test/tests.es6.js https://github.com/facebook/regenerator/blob/master/test/tes...