Issue #11530 has been updated by Martin Drst.


Eike Dierks wrote:
> Back then, there was ASCII, 7bit.

> ruby2 does allow for the use of unicode characters throughout,
> but it does not yet differentiate the use of the unicode planes.
> 
> I'd like to suggest that some planes of the unicode space
> should be reserved from the use as indentifiers.

There are exactly 17 planes in Unicode (the BMP and 16 planes that need surrogate pairs in UTF-16/4 bytes in UTF-8), see https://en.wikipedia.org/wiki/Plane_%28Unicode%29. The majority of these planes is still completely empty.

What you seem to meen are not planes. In some cases, it may be blocks (see https://en.wikipedia.org/wiki/Unicode_block), but in other cases, one wouldhave to decide character-by-character.

The main reason this hasn't been done (yet?) is that while such symbols maybe great to look at (if they are supported in the relevant fonts), they aren't easy to input for most programmers.

----------------------------------------
Feature #11530: unicode planes
https://bugs.ruby-lang.org/issues/11530#change-54249

* Author: Eike Dierks
* Status: Feedback
* Priority: Normal
* Assignee: 
----------------------------------------
Back then, there was ASCII, 7bit.

We are somehow still stuck to this.

All the parsing still is stuck in that old 7bit world.
While there are so many nice symbols in unicode
that we could put to use to make our code shine.

ruby2 does allow for the use of unicode characters throughout,
but it does not yet differentiate the use of the unicode planes.

I'd like to suggest that some planes of the unicode space
should be reserved from the use as indentifiers.

I'd like to suggest that all characters from the plane of mathematical operators
should be reserved, and should not be parsed as identifiers.

This might also apply to the uppercase greek letters,
which are commonly used in mathematical formulae.

This would be no problem, just a function:
    Σ(from:0, to:k){|i| i*2}

I'd like to suggest to reserve the binary operators for future use:
let me give an example:
    a ∩ b # intersect
    a ∪ b # union























































-- 
https://bugs.ruby-lang.org/