3 ms·
hip is one thing, we primarily do web dev. so good unicode support & Phoenix are big selling points.
by qaq 10y ago
hip is one thing, we primarily do web dev. so good unicode support & Phoenix are big selling points.
- careersuicide 10y agoIf you haven't read the code for how Elixir handles Unicode support [0] I highly recommend doing so. At compile time it reads from several Unicode Character Database text files [1] and then defines a whole slew of functions using the contents of the files that take advantage of pattern matching via unquoting. I already knew all about pattern matching before I came across this but I was still absolutely floored by how awesome this is. In the past when working with C I've needed to do something similar but it required running an external tool whose output was a .c file. It worked but it was hardly elegant. [0]: https://github.com/elixir-lang/elixir/blob/master/lib/elixir/unicode/unicode.ex https://github.com/elixir-lang/elixir/blob/master/lib/elixir... [1]: http://www.unicode.org/Public/8.0.0/ucd/ http://www.unicode.org/Public/8.0.0/ucd/
- qaq 10y agoYep very elegant solution