From: Farhan Tanvir Date: 2013-07-30T00:33:31+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? --089e0160bab0d70d6104e2a836a7 Content-Type: text/plain; charset=ISO-8859-1 proper indentation is good, but forcing indentation is really a stupid idea, at least from Ruby point of view. On Mon, Jul 29, 2013 at 9:20 PM, Brandon Weaver wrote: > 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/. >> >> --089e0160bab0d70d6104e2a836a7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
proper indentation is good, but forcing indentation is rea= lly a stupid idea, at least from Ruby point of view.


On Mon, Jul 29, 2013 at 9:= 20 PM, Brandon Weaver <keystonelemur@gmail.com> wrote:=

If you want python style inde= nts and python this and python that, then pray tell, why aren't you jus= t using Python? Quit trying to program Ruby like it's Python and you= 9;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/.


--089e0160bab0d70d6104e2a836a7--