5 ms·
We're so lazy that we can't even be bothered to type "character" half the time, so "grapheme cluster" has no chance to catch on unless we can think of a "char"-
by kibwen 5y ago
We're so lazy that we can't even be bothered to type "character" half the time, so "grapheme cluster" has no chance to catch on unless we can think of a "char"-style abbreviation. I'll start the bikeshed with "gracl", but ambitious folks may wish to argue for "clog" ("cluster of graphemes").
- pbiggar 5y agoIt's really an Extended Grapheme Cluster. In our codebase (Darklang) we abbreviate it to EGC.
- irrational 5y agoHow about graph? One character longer than char and probably not already in use in the area of computer science.
- lloeki 5y agoIs that what Go uses "rune" for? https://golangdocs.com/rune-in-golang https://golangdocs.com/rune-in-golang
- _nalply 5y agoNo, because a grapheme cluster is à where the letter is combined by a and ` which are two Unicode Scalar Values. A Go rune is more like one Unicode Scalar Value. However, be careful, terminology is subtle: what is a Code Point, what a Scalar Value, etc.
- tgsovlerkhgsel 5y agoNo. A "rune" is one codepoint, Golang just decided that they can't use the same name as everyone else (as is tradition in Go).
- zzt123 5y agocharacter…grapheme cluster… Charster!
- deleted 5y ago[deleted]
- homarp 5y agoclugr 'sounds' better than clog though (unless you want to evoke pipe somehow)... clugr evokes more Freddy to me
- contradistinct 5y agoElixir uses the term grapheme already: https://hexdocs.pm/elixir/1.12/String.html#graphemes/1 https://hexdocs.pm/elixir/1.12/String.html#graphemes/1