1. 12
    1. 2

      What surprised me most learning about Ruby’s ranges was that you could loop over ranges of arbitrary boolean expressions like while test_begin .. test_end. I can’t think of other languages that let you loop quite like that.

      1. 5

        That’s not a range, even though the syntax often make people think they are.

        What you are mentioning is flip flops: https://en.wikipedia.org/wiki/Flip-flop_(programming)

        1. 2

          Much of the weird stuff in Ruby is copied from Perl