Sunday, 15 April 2012

language agnostic - Where did concept of yield keyword come from? -


The same query keyword yield exists in three languages ​​I know or have heard: Python , Ruby, C #. They are planning to present this keyword in PHP too. Where did it originally come from? I did not do any deep research, but it seems Python has been since 2003, which is happening before C #.

Update: divide this question into two parts:

  1. Who invited / started the concept of generator? Which language did the first implementation? When?
  2. In which language did the yield keyword appear first? Which year?

    1. Since the generator is a special case of coronians, Producer, Melvin Conway, who had to give credit for the proposal in 1963 in a paper.

    2. You can get the answer to that question on it. There you will see that there is some support through libraries in Lisp in 1958, but CLU is in 1975, which is implemented for the first time.

No comments:

Post a Comment