News for hackers. Stuff that matters.
Re:Announcing Topaz: A New Ruby by semanticart on Wednesday February 06, 2013 @01:28PM (#5177956)
I'm probably in the minority but I would love to see a dialect of ruby that has significant whitespace. Death to unnecessary 'end's
Re:Announcing Topaz: A New Ruby by josh-j on Wednesday February 06, 2013 @04:11PM (#5178853)
> Some observers objected to Go's C-like block structure with braces, preferring the use of spaces for indentation, such as used in Python or Haskell [braces are optional in haskell]. However, we have had extensive experience tracking down build and test failures caused by cross-language builds where a Python snippet embedded in another language, for instance through a SWIG invocation, is subtly and invisibly broken by a change in the indentation of the surrounding code. Our position is therefore that, although spaces for indentation is nice for small programs, it doesn't scale well, and the bigger and more heterogeneous the code base, the more trouble it can cause. It is better to forgo convenience for safety and dependability, so Go has brace-bounded blocks.

http://talks.golang.org/2012/splash.article

Re:Announcing Topaz: A New Ruby by pacaro on Wednesday February 06, 2013 @05:34PM (#5179321)
This.

Especially when writing a code generator. Targeting a significant whitespace language is potentially more tricky than one with explicit delimiters. I love the Haskell approach to this.

Re:Announcing Topaz: A New Ruby by dbaupp on Wednesday February 06, 2013 @05:58PM (#5179451)
(For those who don't know, Haskell has an optional whitespace-significant syntax (which most humans use) as well as a brace-delimited syntax, and these are exactly equivalent.)
Re:Announcing Topaz: A New Ruby by vidarh on Wednesday February 06, 2013 @01:50PM (#5178071)
Significant whitespace in Python was a significant factor in my decision to get proficient in Ruby over Python.

Yes, I hate it that much, and I know quite a few Ruby devs with similar views...

Re:Announcing Topaz: A New Ruby by semanticart on Wednesday February 06, 2013 @03:05PM (#5178474)
Here's how I look at it: I indent my code properly and my team does the same. If we're already doing the right thing where whitespace is concerned, why not reap some benefits from it?

Of course, I also use Coffeescript and Haml...

Re:Announcing Topaz: A New Ruby by jamesbritt on Wednesday February 06, 2013 @04:09PM (#5178841)
Of course, I also use Coffeescript and Haml...

I'm curious: why not use Python then as well?

Re:Announcing Topaz: A New Ruby by chrismsnz on Wednesday February 06, 2013 @04:30PM (#5178942)
He's saying that him and his team indent their code correctly anyway, so it might as well be significant
Re:Announcing Topaz: A New Ruby by jamesbritt on Wednesday February 06, 2013 @05:19PM (#5179238)
I'm asking if someone wants a language like Ruby but with significant white-space why not use Python?
Re:Announcing Topaz: A New Ruby by chrismsnz on Wednesday February 06, 2013 @06:05PM (#5179492)
I'm pretty sure his comment is indicating he _does_ use Python and that is his take on the "significant whitespace" issue.
Re:Announcing Topaz: A New Ruby by draegtun on Wednesday February 06, 2013 @03:08PM (#5178490)
Funny, I posted the following to HN this morning: Acme::Pythonic - Python whitespace conventions for Perl - http://news.ycombinator.com/item?id=5175619