Issue #5065 has been updated by Lazaridis Ilias.


Yasushi ANDO wrote:
> The same kinds of requests as "endall" are being discussed on #5054 which is set to Joke. So "endall" can be a joke. 

I do not make jokes on a issue-tracking-system of a programming language (I made them on the user-lists, like I made some on ruby-talk).

(btw: generally, if you want to keep "joke", than it should be a "Tracker" (issue-type) Or possibly "status: joking" - But not an component-type.

> In the case of "{", the issue below is a bit similar to your's and has been already rejected: 
> http://redmine.ruby-lang.org/issues/729

It's similar, yes, but not the same.
 
> No offense is meant but you may recognize "Category set to Joke" as almost rejection.

I did not take any offence. What I finally care about is the efficiency of this project.

But "Jokes" do not belong here. Analysing and understanding issues is difficult enough, and something that looks like a joke can be very serious.

E.g., sometimes you have to realize that a proposal you made was a "joke", in order to move on to a more serious proposal.

Mr. Prescott's (serious) comment was correct, and reminded me that "}" is expected to appear paired to an "{".

So, instead of "}", there could be another shortform "end", possibly just an "e" (enables e;e;e;e;e)

There is and issue with "end", at least with the multiple ends (that's why I would not see an "endall" as a joke)

-

So, I realize that the initial proposal is finally a "joke", you can reject this issue.

Or you can leave it open and change the title to:

 Provide a shorter alias for "end" (e.g.: "e")

(if this is to be rejected, too, no problem)

----------------------------------------
Feature #5065: Allow "}" as an alternative to "end"
http://redmine.ruby-lang.org/issues/5065

Author: Lazaridis Ilias
Status: Open
Priority: Normal
Assignee: 
Category: Joke
Target version: 


=begin

I've noticed issue #5054, subjecting an "endall".

module MyModule
  class MyClass
    def my_method
      10.times do
        if rand < 0.5 
          p :small
        endall


To reduce typing, but to keep the levels, the following construct could be allowed:

module MyModule
  class MyClass
    def my_method
      10.times {   # "10.times do" would work, too
        if rand < 0.5 
          p :small
        }
      } 
    }
  } 
}

The speciality of this language would be, that an opening brace is not necessary

Several constructs allow already the use of "{}" (do / end), thus this would be possibly the consistent way to reduce typing effort, but to keep the structure intact.

=end



-- 
http://redmine.ruby-lang.org