News for hackers. Stuff that matters.
Re:I don’t like the Ruby 1.9 hash syntax by tvon on Wednesday December 14, 2011 @12:22AM (#3350749)
> The hashrocket itself looks bizarre and excessively noisy to people coming from JavaScript or Python or pretty much anything but PHP.

Just my experience, but I have about a decade of professional Python experience and all of 8 months of professional Ruby experience, and while the rocket syntax drives me nuts in PHP, I actually prefer it in Ruby to the 1.9 syntax.

> I'm just saying, "only one way to do it" is the Python philosophy

Well, there is a lot of effort put into not duplicating functionality in libraries and whatnot, but the actual mantra is:

> There should be one-- and preferably only one --obvious way to do it.

That just means if you need to accomplish a basic task, there should be one obvious solution, it doesn't mean there can't be more than one way to do it.

That's how I've always read it, anyway.

There are no comments on this comment yet.