From: Brandon Weaver Date: 2013-07-30T00:20:44+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? --047d7bacc44822e30f04e2a809c3 Content-Type: text/plain; charset=ISO-8859-1 If you want python style indents and python this and python that, then pray tell, why aren't you just using Python? Quit trying to program Ruby like it's Python and you'll be a lot better off. Code is plenty short when you learn anonymous functions, Blocks, Procs, and Lambdas. The more lisp you learn the faster that will become apparent. Ruby has the strength of some functional programming, and pushing that under the rug is a tragedy. That being said it can be extended to do such things but it's completely unnecessary if not borderline esoteric. Program Ruby like it's Ruby. On Jul 29, 2013 9:56 AM, "Admin Tensor" wrote: > Darryl Pierce wrote in post #1117018: > > On Mon, Jul 29, 2013 at 03:39:02PM +0900, Juha K. wrote: > >> Why not go coffeescript style and create a preprocessor gem that > >> compiles indent-aware ruby into ruby? Shouldn't be too big effort. > > > > To what advantage? > > Well, the most obvious are less typing and very compact code. We can > also think about Groovy and Java, and to different extent, Dart and > JavaScript. > > Bill > > -- > Posted via http://www.ruby-forum.com/. > > --047d7bacc44822e30f04e2a809c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

If you want python style indents and python this and python = that, then pray tell, why aren't you just using Python? Quit trying to = program Ruby like it's Python and you'll be a lot better off.

Code is plenty short when you learn anonymous functions, Blo= cks, Procs, and Lambdas. The more lisp you learn the faster that will becom= e apparent. Ruby has the strength of some functional programming, and pushi= ng that under the rug is a tragedy.

That being said it can be extended to do such things but it&= #39;s completely unnecessary if not borderline esoteric. Program Ruby like = it's Ruby.

On Jul 29, 2013 9:56 AM, "Admin Tensor"= ; <lists@ruby-forum.com> = wrote:
Darryl Pierce wrote in post #1117018:
> On Mon, Jul 29, 2013 at 03:39:02PM +0900, Juha K. wrote:
>> Why not go coffeescript style and create a preprocessor gem that >> compiles indent-aware ruby into ruby? Shouldn't be too big eff= ort.
>
> To what advantage?

Well, the most obvious are less typing and very compact code. =A0We can
also think about Groovy and Java, and to different extent, Dart and
JavaScript.

Bill

--
Posted via http://= www.ruby-forum.com/.

--047d7bacc44822e30f04e2a809c3--