Feature #715
Updated by nobu (Nobuyoshi Nakada) over 8 years ago
=begin I would like the ruby interpreter to understand symbols such as the greater-than-or-equal sign, as an alias for '>='. for'>='. This is not simply because it would look pretty, it would reduce the cognitive load on the programmer. At the moment many ascii characters are overloaded to mean different things in different contexts. Especially characters like $, :, > and =. If the relevant symbols were used then the brains of the programmer would be free to do more useful things. For example, something like: ```ruby a>=b ? {:a=>!b} : nil ``` Could be displayed as: ```ruby a≥b ? :a → ¬b : ∅ ``` (in case the UTF-8 characters don't come across: I just replaced several characters with mathematical symbols) If the Ruby interpreter would support this then text editors can be improved to automatically insert the appropriate symbol. I don't know of any language that can do this yet, so it would be a unique selling point for Ruby, but it would seem rather easy to implement. =end