RalphCorderoy (Ralph Corderoy)
- Login: RalphCorderoy
- Registered on: 07/19/2011
- Last sign in: 09/17/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
07/24/2011
-
12:38 AM Ruby Feature #5054: Compress a sequence of ends
- Magnus Holm wrote:
> Let me just point out that you don't have to have the "end"s on separate lines
As comment #42 and others have pointed out already. :-)
07/23/2011
-
12:49 AM Ruby Feature #5054: Compress a sequence of ends
- Kurtis Rainbolt-Greene wrote:
> The `endwhile` and `endif` or `fi` solutions aren't *solutions* because they can't be used for block arguments for methods:
(Not "fi", please, awful! :-)
You're correct. It can't. Although there ...
07/21/2011
-
01:27 AM Ruby Feature #5054: Compress a sequence of ends
- Jon Forums wrote:
> I'm still _very_ much for the current style and haven't wrapped my mind around the new visual look.
> ...
That makes me have to count the number of blocks it's closing to ensure it's five. Please have the computer ...
07/20/2011
-
11:47 PM Ruby Feature #5054: Compress a sequence of ends
- Nothing seems to ensure the author will bother doing e___e___end and have the e's align with the start of the blocks though. Some may just do e_e_end or eeend leaving the reader to tediously check by counting. We want something easy fo...
-
09:40 PM Ruby Feature #5054: Compress a sequence of ends
- Pierre-Yves Gérardy wrote:
> module MyModule
> ...
Interesting idea. A bit tedious to type. I suppose with an indentation level of 4 one could already do "end;end;end;end" and have them all align. :-) -
08:41 PM Ruby Feature #5054: Compress a sequence of ends
- Yasushi ANDO wrote:
> Ralph Corderoy wrote:
> ...
"endif endif endif" would be uncommon. Normally a single "endwhile" or
whatever wrapped the nested if-statements would suffice. When it
couldn't, an extra begin...endbegin could be ... -
09:24 AM Ruby Feature #5054: Compress a sequence of ends
- > I prefer end! to enn..d.
That cannot work because it's not known how many ends are being replaced;
indentation can't be relied upon as this isn't Python. Hence the original
suggestion of ennnd. But that's not good because human... -
12:00 AM Ruby Feature #5054: Compress a sequence of ends
- Masaru Iwashita wrote:
> How about writing en5d instead of ennnnnd ?
> ...
I shouldn't have to count at all as it's error-prone.
Writing "enddef" or "endmodule" would avoid the need.
See my http://redmine.ruby-lang.org/issues/5054#no...
07/19/2011
-
09:52 PM Ruby Feature #5054: Compress a sequence of ends
- With reference to e+nd or en+d; I haven't had to count characters since
Hollerith string constants in Fortran; 11HHELLO WORLD ;-). My
suggestion is to introduce end{if,while,def,...} as keywords; they act
as one or more "end"s up...