Project

General

Profile

ActionsLike0

Feature #12241

closed

super end

Added by nobu (Nobuyoshi Nakada) about 9 years ago. Updated about 9 years ago.

Status:
Rejected
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 - Feature #5054: Compress a sequence of endsRejectedtechnohippy (Yasushi ANDO)Actions
Related to Ruby - Feature #16746: Endless method definitionClosednobu (Nobuyoshi Nakada)Actions
Has duplicate Ruby - Feature #17786: Proposal: new "ends" keywordOpenActions

Updated by usa (Usaku NAKAMURA) about 9 years ago

  • Assignee set to 10790

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Status changed from Open to Rejected
#8

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

#9

Updated by shyouhei (Shyouhei Urabe) about 5 years ago

#10

Updated by duerst (Martin Dürst) almost 4 years ago

ActionsLike0

Also available in: Atom PDF