New post — all things Unicode!
One of the most interesting researches I had to do. Enjoy!
New post — all things Unicode!
One of the most interesting researches I had to do. Enjoy!
@nikitonsky Elixir also gets this right. Even though my terminal renders an extra space after the emoji.
@nikitonsky Just had a look, and it just calls erlang.
Erlang implementation is here:
https://github.com/erlang/otp/blob/0164d3db05739fc1fad67ac1f5bf3e2aea15cd45/lib/stdlib/src/string.erl#L147
Erlang has a script which generates the unicode util code from the unicode spec. Macros would have been nice for that. :)
https://github.com/erlang/otp/blob/master/lib/stdlib/uc_spec/gen_unicode_mod.escript
@ihabunek nice! does it come from Erlang? Or this is Elixir specifically?
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.