whatyouhide / short_maps

⚠️Retired⚠️ library that provided a ~m sigil for ES6-like map destructuring in Elixir.
https://andrealeopardi.com/posts/a-story-of-regret-and-retiring-a-library-from-hex/
76 stars 5 forks source link

is there a way to import this for all files without importing on each file? #12

Closed mrkaspa closed 8 years ago

whatyouhide commented 8 years ago

@mrkaspa hey there, thanks for the issue. There is no simple way to import this on all files without specifically using import in each file, but it's not a short_maps thing: it's rather an Elixir design decision. Explicitly importing modules makes code easier to read because for each module/file you know exactly what's imported and what isn't, making things less "magic" :)

Hope this answered your issue, feel free to ping again if something isn't clear :) 👍

mrkaspa commented 8 years ago

Thx yeah I was wondering if there were a way to do it