by BelenusMordred · 5y ago · 0 comments
Don't despair fellow emoji devs, our time will come soon enough.
"English speaking world"
"untypeable"
"public API"
Even then you exempt Greek symbols. I suppose you might be willing to accept ¢ or €. Of course, "untypeable" is very ambiguous.
Still, not all code is "public API" and not all code is intended for the English speaking world. So I think it's great to support non-ASCII symbols.
よろしく
enum Size { P, XS, S, M, L, XL, XXL }
enum Size { Petit, Extra_Small, Small, Medium, Large, Extra_Large, Extra_Extra_Large }
enum Size { 小小小, 小小, 小, 中, 大, 大大, 大大大 }
Which do you prefer: P, Petit, Petite, 小小小, 3小, XXS, 2XS?
English is chalk full of non-English words. And lots of symbols are useful. Sometimes it's worth it to learn the symbol. And often not much harder than learning the English abbreviation.
enum ⏻ { ⭘, ⏽, ⏾ }
Again, "typeable" is ambiguous but obviously an important consideration.
None of this is to argue against your point. Just musing.
In a way, it's in part a job for the dev tools. Autocomplete engines should be able to complete these symbols from an ascii-only hint. 'a' should offer "α" as one of the completion options, and 'bla' should offer "BLÅHAJ".
Being harder to type is part of the point.
The Julia community has been trying really hard to convince people that this is a good idea and I'm still not on board with it.
Back when someone used them to add pseudo-generics https://old.reddit.com/r/rust/comments/5penft/parallelizing_...
Korean windows have a "special-emoji" keyboard that can be invoked by: 1. type a charactor 2. press 'hanja' key 3. (wild special character selection menu appears)
example: § (from 'ㅁ') / ㈜ (from 'ㅁ') / ㎖ (from 'ㄹ')
* ALT e' = é
* ALT u " = ü
* ALT n ~ = ñ
It's not limited to diacritics; you can type ligatures (ALT ae = æ), extended characters (ALT [/] = ), I assume the majority of UTF (ALT #G = 𝄞) and so on. And yes, even emoji (ALT ALT alembic = )
edit: apparently, HN won't show the checkbox (U+2611) or alembic[1].
Windows+. also allows you to just type to search for emojis, so e.g. typing WINDOWS+. sad ENTER gives you a sad emoji. Sadly this doesn't work for symbols, even though the Windows+. menu has a good coverage of symbols.
I guess you can always switch your keyboard to Korean input.
1: https://community.windows.com/en-us/stories/keyboard-shortcu...
typedef shared_ptr<Foo> Foo STAR_EMOJI;
EDIT: My star emoji doesn't seem to be showing up in HN posts so image that STAR_EMOJI is actually https://emojipedia.org/star/