re: For Loop in different programming languages VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Love the apples-to-apples comparison. Here's Ruby: for num in 0..max_num do puts "The number is #{num}" end But in practice, nobody uses...
 

Thank you for adding Ruby syntax. This post was written a few year ago when I found myself always scrambling to write loop when working with different programming languages. Nowadays, a functional programming approach is preferable. I love Python and Ruby for their clean syntax.

code of conduct - report abuse