Hacker News new | ask | show | jobs
by michielvoo 4614 days ago
imho C# has a nicer syntax:

  yield return <expression>;
  yield break;
http://msdn.microsoft.com/en-us/library/vstudio/9k7k7cf0.asp...
1 comments

how is `yield return` and `yield break` nicer than `yield` and `return` exactly?
Nicer than "function *" I meant.