17.05.20 13:47, Thierry Parmentelat пише:
well it’s all in the title
the specific character that I am referring to is this one
In [1]: print("\u2192”) →
https://unicode-table.com/en/2192/
——
just curious about how people would feel about taking better advantage of non-ascii characters when that seems to make sense
There are a lot of right arrows in Unicode.
print(*[c for c in map(chr, range(0x20000)) if unicodedata.category(c) in ('Sm', 'So') for n in [unicodedata.name(c, '')] if 'RIGHT' in n and 'ARROW' in n]) → ↔ ↛ ↝ ↠ ↣ ↦ ↪ ↬ ↭ ↮ ↱ ↳ ↴ ↹ ⇄ ⇆ ⇉ ⇎ ⇏ ⇒ ⇔ ⇛ ⇝ ⇢ ⇥ ⇨ ⇰ ⇴ ⇶ ⇸ ⇹ ⇻ ⇼ ⇾ ⇿ ⍈ ⍼ ➔ ➙ ➛ ➜ ➝ ➞ ➟ ➠ ➡ ➢ ➣ ➤ ➥ ➦ ➧ ➨ ➩ ➪ ➫ ➬ ➭ ➮ ➯ ➱ ➲ ➳ ➵ ➸ ➺ ➻ ➼ ➽ ➾ ⟴ ⟶ ⟷ ⟹ ⟺ ⟼ ⟾ ⟿ ⤀ ⤁ ⤃ ⤄ ⤅ ⤇ ⤍ ⤏ ⤐ ⤑ ⤔ ⤕ ⤖ ⤗ ⤘ ⤚ ⤜ ⤞ ⤠ ⤳ ⤴ ⤵ ⤷ ⤸ ⤾ ⥂ ⥃ ⥄ ⥅ ⥇ ⥈ ⥰ ⥱ ⥲ ⥴ ⥵ ⥸ ⥹ ⦨ ⦪ ⦬ ⦮ ⦳ ⬄ ⬌ ⬎ ⬏ ⭃ ⭄ ⭆ ⭇ ⭈ ⭌ ⭢ ⭤ ⭬ ⭲ ⭼ ⮀ ⮂ ⮆ ⮊ ⮌ ⮕ ⮙ ⮚ ⮞ ⮡ ⮣ ⮥ ⮧ ⮩ ⮫ ⮭ ⮯ ⮱ ⮳ ⮵ ⮷ ⯮ → 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸 🮸
What of them do you want to accept as an alias of ->? And how would you distinguish similarly looking arrows (for example →, ➙, ➞, ⟶, ⭢)?