Y
Hacker News
new
|
ask
|
show
|
jobs
by
dnautics
2668 days ago
Presumably they were using cowboy through Elixir. It's not hard, the module is just called :cowboy instead of cowboy.
1 comments
dqv
2668 days ago
Or `Cowboy` with `alias :cowboy, as: Cowboy` ;)
link
latch
2668 days ago
Stick with the :module notation. This makes it clear that you need to be in "erlang mode"...indexes starting at 1, [probably] charlists instead of binaries, and possibly weird (from an elixir programmer's point of view) argument order.
link
dnautics
2668 days ago
To be fair, it's a rare thing to be using an index in elixir at all.
link