Re: Yield should be renamed call_block




On Jul 8, 2007, at 7:58 PM, Yukihiro Matsumoto wrote:

Hi,

In message "Re: Yield should be renamed call_block"
on Mon, 9 Jul 2007 09:10:23 +0900, Bharat Ruparel <bruparel@xxxxxxxxxxx> writes:

|I find it fascinating and quite a bit true. However, I have to always
|mentally translate the keyword "yeild" to mean "call_block".

The "yield" keyword is used for this purpose from the ages of
languages for example in CLU. So if you learn the history and the
culture, you will find less problem.

I am not going to rename it. But in far future (3.0? maybe), the
keyword will be removed from the language, and you will access blocks
via block arguments of methods.

matz.

to the OP, Of course with your won individual modules/libraries loaded/required, you can alias yield to be whatever isn't already taken by something else. Ideas for aliases: yield_to, call_block, step_out, segway, divert, fork, short_fork, lunch_break, junk_time, call_junk, goto ((hehehe...))

John Joyce

.



Relevant Pages

  • Re: Yield should be renamed call_block
    ... languages for example in CLU. ... keyword will be removed from the language, and you will access blocks ... you can alias yield to be whatever isn't already ...
    (comp.lang.ruby)
  • Re: Yield should be renamed call_block
    ... The "yield" keyword is used for this purpose from the ages of ... languages for example in CLU. ... keyword will be removed from the language, and you will access blocks ...
    (comp.lang.ruby)
  • Re: Yield should be renamed call_block
    ... keyword will be removed from the language, and you will access blocks ... That sounds pretty good -- and more consistent across the language, ... Pleeeease don't remove the yield ...
    (comp.lang.ruby)
  • Re: Global Functions
    ... The Shared keyword describes in my idea much better logical what it does ... Java is for me an island from Indonesia. ... is to ask why then haven't other languages adopted this really cool ... programming), Interface, Module, etc. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Syntax preference: symbols to use for iteration
    ... If the keyword 'range' would ... At the semantic level a for loop expects a variable (and not a ... A for loop uses an 'inout' parameter (other languages call this ... const proc: for (inout integer param) ...
    (comp.lang.misc)