Y
Hacker News
new
|
ask
|
show
|
jobs
by
jshen
903 days ago
Python has far more custom syntax than Ruby. In Ruby an elegant syntax like blocks solves many problems, in Python each problem has custom syntax.
1 comments
hnfong
903 days ago
Quick, which language is this written in?
a = [1,2,3,4]
for b in a
print(b)
end
link
jshen
903 days ago
Here's some advice. If you want to make a point, make it clear and direct. No one knows what point you are trying to make here.
link
hnfong
903 days ago
Here's some advice - don't give unsolicited advice.
link
dorianmariefr
903 days ago
end is ruby :)
But you would write `[1, 2, 3, 4].each { |n| print(n) }`
link
a = [1,2,3,4]
for b in a
end