# Indentation vs. "end"s

**URL:** <https://rubytalk.org/t/indentation-vs-end-s/24544>\
**Category:** ruby-talk\
**Created:** [1 February 2006 22:21 UTC](https://rubytalk.org/t/indentation-vs-end-s/24544 "2006-02-01T22:21:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gennady\_Bystritsky1](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@Gennady\_Bystritsky1](https://rubytalk.org/u/Gennady_Bystritsky1)\
**Post date:** [1 February 2006 22:21 UTC](https://rubytalk.org/t/indentation-vs-end-s/24544/1 "2006-02-01T22:21:24Z")

</div>

Then get to \*REALLY\* love Python and the problem is gone for you (and  
for honorable Bruce Eckel too).  
Otherwise it looks like an inviation to a flame.

Gennady.

> **···**
>
> > -----Original Message-----  
> > From: Rubyist [mailto:nuby.ruby.programmer@gmail.com]  
> > Sent: Wednesday, February 01, 2006 13:37  
> > To: ruby-talk ML  
> > Subject: Indentation vs. "end"s
> > 
> > Hi,
> > 
> > I \*REALLY\* love Ruby very much. But I always find those  
> > "end"s somewhat ugly ( thousands of excuses to Matz ). I  
> > sometimes feel myself wishing that Ruby use indentation (as  
> > Python does) instead of "end"s.
> > 
> > Today, I have seen a post in:
> > 
> > [Ruby, PHP and a Conference](http://www.artima.com/weblogs/viewpost.jsp?thread=146091)
> > 
> > As far as I know, Bruce Eckel is a competent programmer and  
> > when I saw that he was agree with me, I surprised.
> > 
> > What do you think about those "end"s? Do you \*REALLY\* like them?  
> > Will Ruby-2 offer an alternative? Well, maybe not  
> > "indentation" but will another solution be available?

---

<div class="post-metadata">

**Author:** ![Rubyist](https://avatars.discourse-cdn.com/v4/letter/r/bbe5ce/32.png) [@Rubyist](https://rubytalk.org/u/Rubyist)\
**Post date:** [2 February 2006 08:43 UTC](https://rubytalk.org/t/indentation-vs-end-s/24544/2 "2006-02-02T08:43:17Z")

</div>

> > Then get to \*REALLY\* love Python and the  
> > problem is gone for you (and  
> > for honorable Bruce Eckel too).  
> > Otherwise it looks like an inviation to a flame.

Is this a "solution"? Are your "solutions" always like this?

"Love or get away".

Hmm... Quite impressive. You can solve every problem with this  
approach. I will try it in a spare time.

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello1](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Martin\_DeMello1](https://rubytalk.org/u/Martin_DeMello1)\
**Post date:** [2 February 2006 19:53 UTC](https://rubytalk.org/t/indentation-vs-end-s/24544/3 "2006-02-02T19:53:22Z")

</div>

Do you dislike writing or reading the 'end's? If the latter, set your  
editor's syntax highlighting to grey them to near-invisibility - that  
way it'll indent everything properly, and you won't see the actual 'end'  
in your code.

martin

> **···**
>
> Rubyist \<nuby.ruby.programmer@gmail.com\> wrote:
> 
> > \>\> Then get to \*REALLY\* love Python and the  
> > \>\> problem is gone for you (and  
> > \>\> for honorable Bruce Eckel too).  
> > \>\> Otherwise it looks like an inviation to a flame.
> > 
> > Is this a "solution"? Are your "solutions" always like this?
> > 
> > "Love or get away".
> > 
> > Hmm... Quite impressive. You can solve every problem with this  
> > approach. I will try it in a spare time.
