Project

General

Profile

Actions

Feature #12241

closed

super end

Added by nobu (Nobuyoshi Nakada) over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:74763]

Description

This is a refinement of [Feature #5054].

It required to count the depth of count to end, and tiresome.

This proposal will introduce "super end", !end, which ends the block began at the same column with !.

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

https://github.com/ruby/ruby/compare/trunk...nobu:feature/!end


Related issues 3 (1 open2 closed)

Related to Ruby master - Feature #5054: Compress a sequence of endsRejectedtechnohippy (Yasushi ANDO)Actions
Related to Ruby master - Feature #16746: Endless method definitionClosednobu (Nobuyoshi Nakada)Actions
Has duplicate Ruby master - Feature #17786: Proposal: new "ends" keywordOpenActions
Actions

Also available in: Atom PDF