Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
tjpnz
2y ago
0 comments
Share
Not op but compared with Python it's heavier in the syntax department. You would have an easier time going in the other direction and encounter less situations where you have to stop and think about what to use in which situation while learning.
undefined | Better HN
0 comments
default
newest
oldest
jshen
2y 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.
hnfong
2y ago
Quick, which language is this written in?
a = [1,2,3,4]
for b in a
print(b)
end
jshen
2y 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.
1 more reply
dorianmariefr
2y ago
end is ruby :)
But you would write `[1, 2, 3, 4].each { |n| print(n) }`
j
/
k
navigate · click thread line to collapse