News for hackers. Stuff that matters.
Re:Ruby 3.3 by tjpnz on Monday December 25, 2023 @11:43AM (#38763974)
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.
Re:Ruby 3.3 by jshen on Monday December 25, 2023 @12:23PM (#38764330)
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.
Re:Ruby 3.3 by hnfong on Monday December 25, 2023 @11:35PM (#38768952)
Quick, which language is this written in?

a = [1,2,3,4]

for b in a

  print(b)
end
Re:Ruby 3.3 by jshen on Tuesday December 26, 2023 @12:58AM (#38769240)
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.
Re:Ruby 3.3 by hnfong on Tuesday December 26, 2023 @03:59AM (#38770064)
Here's some advice - don't give unsolicited advice.
Re:Ruby 3.3 by dorianmariefr on Tuesday December 26, 2023 @03:48AM (#38770012)
end is ruby :)

But you would write `[1, 2, 3, 4].each { |n| print(n) }`