3 ms·
Ruby syntax is really quite insane. It's just that the insanity is contained in dark corners that most of us thankfully rarely have to deal with. Consider for e
by vidarh 9y ago
Ruby syntax is really quite insane. It's just that the insanity is contained in dark corners that most of us thankfully rarely have to deal with. Consider for example that this is the literal string "x": '% x '. So is % + linefeed + x + linefeed, because for most characters the character after a prefix '%' will be the quote character of a quoted string. And that includes whitespace.
There's all kinds of crazy little bits like that littered around Ruby.
It's still my favorite language, but it is also totally infuriating sometimes.