I saw this operator in HAML code. I wonder what it is for.
I see the following works:
> ?{
=> \"{\"
> ?\\s
=> \" \"
> ?a
=> \"a\"
It returns a single character string. It is the shortest way to write a single-character string literal. Use it when you want to define a lot of single-character strings. It is a heritage from Ruby <1.9, where it used to return the ASCII code for that character. I don't understand what you mean by "break the language orthogonality".