MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/tejbc/javascript_the_good_parts/c4lzdoo/?context=9999
r/programming • u/sheldonpooper • May 09 '12
159 comments sorted by
View all comments
21
Old, and wouldn't this be true of every language?
24 u/angrystuff May 09 '12 Some languages are better than others:http://xkcd.com/353/ 48 u/Fissionary May 09 '12 edited May 09 '12 Hello World is just print "Hello, world!"Not in the latest version of Python, it isn't. It will work in Basic, though.The simplicity of the Hello World program is not a good indicator of the power of a language. 29 u/Wolfy87 May 09 '12 No, now it uses parenthesis. How difficult. 9 u/[deleted] May 09 '12 it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ... 5 u/kqr May 09 '12 Do you not want to be able to pass print to a higher-order function? 4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
24
Some languages are better than others:
http://xkcd.com/353/
48 u/Fissionary May 09 '12 edited May 09 '12 Hello World is just print "Hello, world!"Not in the latest version of Python, it isn't. It will work in Basic, though.The simplicity of the Hello World program is not a good indicator of the power of a language. 29 u/Wolfy87 May 09 '12 No, now it uses parenthesis. How difficult. 9 u/[deleted] May 09 '12 it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ... 5 u/kqr May 09 '12 Do you not want to be able to pass print to a higher-order function? 4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
48
Hello World is just print "Hello, world!"
print "Hello, world!"
Not in the latest version of Python, it isn't. It will work in Basic, though.
The simplicity of the Hello World program is not a good indicator of the power of a language.
29 u/Wolfy87 May 09 '12 No, now it uses parenthesis. How difficult. 9 u/[deleted] May 09 '12 it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ... 5 u/kqr May 09 '12 Do you not want to be able to pass print to a higher-order function? 4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
29
No, now it uses parenthesis. How difficult.
9 u/[deleted] May 09 '12 it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ... 5 u/kqr May 09 '12 Do you not want to be able to pass print to a higher-order function? 4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
9
it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ...
5 u/kqr May 09 '12 Do you not want to be able to pass print to a higher-order function? 4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
5
Do you not want to be able to pass print to a higher-order function?
4 u/Traubert May 09 '12 That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function. 6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
4
That's possible even if print is kept as a keyword too. You can do it in any of the 2.x versions that provide print as a function.
6 u/kqr May 09 '12 How do you pass it? It just syntax errors me when I try. -2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
6
How do you pass it? It just syntax errors me when I try.
-2 u/sli May 09 '12 Why would you want to pass it and not simply use it normally? 2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
-2
Why would you want to pass it and not simply use it normally?
2 u/cacahootie May 09 '12 You're joking, right? Metaprogramming is super powerful in Python. → More replies (0)
2
You're joking, right? Metaprogramming is super powerful in Python.
→ More replies (0)
21
u/[deleted] May 09 '12
Old, and wouldn't this be true of every language?