andre1sk

andre1sk

Elixir's biggest gotchas?

Being new to Elixir would be very valuable to learn what you guys consider to be the biggest gotchas in Elixir land?

First Post! Switch mode

muhifauzan

muhifauzan

For me, it’s the functional programming. Elixir is not the first functional programming I learn. But it’s the first functional programming I learn by doing, not just by reading the books. Another things are like pattern matching, pipe operator, recursive call, etc.

Most Liked

josevalim

josevalim

Creator of Elixir

I think Elixir may actually make it slightly more confusing because a lot of folks coming from other language expect 'foo' == "foo". That’s why one of the proposals I want to send after v1.3 is out is to deprecate the use of 'foo' in the long-term (and I really mean long-term) in favor of the sigil ~c"foo". It is going to be more explicit and I find using sigils for char lists in Elixir at this point more idiomatic.

37
Post #9
gregvaughn

gregvaughn

erlang charlists. Newbie exercises are bound to create a list of integers and iex will print it out in a surprising way. It’s a fundamental ambiguity that’s completely understandable, but it introduces itself to newcomers in a very surprising way.

19
Post #2
andre1sk

andre1sk

For me so far syntax for piping into anonymous function was a bit surprising:
|> (&(&1)).()

13
Post #6

Last Post!

Sebb

Sebb

there are two points here that could be added to Elixir Gotchas and Common Issues Wiki

'foo' != "foo": Elixir's biggest gotchas? - #10 by josevalim
keyword lists are just sugar: Elixir's biggest gotchas? - #12 by bbense

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2976 91332 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
zachdaniel
Introducing AshStorage! Attachment and file management that slots directly into your resources :smiling_face_with_sunglasses: I had hope...
New

We're in Beta

About us Mission Statement