Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you tried Ruby? It's the most "what you describe" language I've used.

I don't use it because Python's more popular and I'm a slave to fashion and critical mass, but it's so much more easy and expressive than even Python's syntax.

    for i in 0..5
I can't believe Python didn't adopt that syntax, which comes from Bash... I surmise it didn't because Python is actually something of the philosophical opposite of Ruby. In Python, there is one way to do things. You use the range() call, so we only use the range() call. In Ruby, the same thing can be done in many different ways. More expressive although a little wild.


There's plenty of ways to do most things in Python. That's one of its strengths as much as anything, despite what the Zen says.

Also, I hate how discussions like this seem to always turn towards small syntactic differences rather than actual differences in functionality.


What do you do when you need to change the step? Unique syntax can fall down where a generic function call would handle it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: