Re:Zigler: Zig NIFs in Elixir
by G4BB3R on Thursday October 24, 2024 @02:28PM
(#41938192)
Are sigils (~) restricted to one char?
To me seems ~Zig would be more clear and short enough.
[ Parent
| on HN ]
Erlang sigils are not, they can be any length, limited to characters allowed in atoms.
Elixir sigils also allow multiple characters in the name, but chars after the first must be upper case, according to the docs.
So for Elixir, it would have to be something like ~zIG
Re:Zigler: Zig NIFs in Elixir
by throwawaymaths on Thursday October 24, 2024 @02:50PM
(#41938447)
According to the docs, must be all upper case:
> Custom sigils may be either a single lowercase character, or an uppercase character followed by more uppercase characters and digits.
Ah yeah, you're right.
Wait, erlang has sigils?