Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any parallel in Objective-C to C#'s yield keyword [duplicate]

The first time I saw the yield keyword in C# I thought "yuck what a way to junk up the language". Having grown since then and actually used the language I find it so pleasantly simple to express state logic that I'd like to use a similar approach in other development platforms.

I'm exploring Objective-C for some support utilities. Is there anything like the C# yield keyword for Objective-C?

like image 946
Paul Alexander Avatar asked May 10 '10 19:05

Paul Alexander


1 Answers

There's no real support for it in the language as far as I know, but here's an implementation someone took the time to build, might be helpful.

like image 56
ChristopheD Avatar answered Oct 19 '22 11:10

ChristopheD