Elixir Trickery: Cheating on Structs, And Why It Pays Off

While we can’t say cheating on anyone is okay, we’re not as absolutistic when it comes to cheating on Elixir at times.

Structs are there for a reason (we’ll start from a brief overview), and that’s certainly not for us to cheat on them. But we can if …


This content originally appeared on DEV Community and was authored by Curiosum

While we can't say cheating on anyone is okay, we're not as absolutistic when it comes to cheating on Elixir at times.

Structs are there for a reason (we'll start from a brief overview), and that's certainly not for us to cheat on them. But we can if we have to - and we'll sometimes even justify that and get away with it!

Today's article will come in handy especially for those who are interested in developing libraries for Elixir and making them usable across different dependency versions, which is always a problem when writing code intended to be pluggable into different applications. Read more...


This content originally appeared on DEV Community and was authored by Curiosum


Print Share Comment Cite Upload Translate Updates
APA

Curiosum | Sciencx (2021-10-22T21:55:25+00:00) Elixir Trickery: Cheating on Structs, And Why It Pays Off. Retrieved from https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/

MLA
" » Elixir Trickery: Cheating on Structs, And Why It Pays Off." Curiosum | Sciencx - Friday October 22, 2021, https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/
HARVARD
Curiosum | Sciencx Friday October 22, 2021 » Elixir Trickery: Cheating on Structs, And Why It Pays Off., viewed ,<https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/>
VANCOUVER
Curiosum | Sciencx - » Elixir Trickery: Cheating on Structs, And Why It Pays Off. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/
CHICAGO
" » Elixir Trickery: Cheating on Structs, And Why It Pays Off." Curiosum | Sciencx - Accessed . https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/
IEEE
" » Elixir Trickery: Cheating on Structs, And Why It Pays Off." Curiosum | Sciencx [Online]. Available: https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/. [Accessed: ]
rf:citation
» Elixir Trickery: Cheating on Structs, And Why It Pays Off | Curiosum | Sciencx | https://www.scien.cx/2021/10/22/elixir-trickery-cheating-on-structs-and-why-it-pays-off/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.