News for hackers. Stuff that matters.
Re:How it became like this? Ruby Range class by cout on Monday July 29, 2024 @10:27PM (#41105581)
This is one of the few features of Ruby I've never found a use for, and not fit lack of trying.

I thought I remembered Matz once saying it would be removed, But I could be wrong. Maybe someone uses it.

Re:How it became like this? Ruby Range class by lmz on Tuesday July 30, 2024 @12:04AM (#41105956)
Re:How it became like this? Ruby Range class by pizza234 on Tuesday July 30, 2024 @02:33AM (#41106559)
The flip-flop operator is very useful to extract continuous subsets, typically, sections of (multi-line) strings, where the dev defines the delimiters - think of the `=begin` and `=end` keywords.

I've personally never used for anything else than strings, but when I do, it's very useful.