
Macros and Busting Boilerplate with Robert Ellen - EMx 176
Elixir Mix
00:00
Defining Multiple Functions Inside a Quote
You can actually get away with just using def because like def is side effecty. if you're defining multiple functions inside a quote each one work because you have to return on alt instis. There's no harm in using map and to be honest it's ideally the clarity is going to be higher so yeah well if you are defining the courts inside the loop you would have to use map to capture all the astings. If your each is inside the court then that's fine right then each is part of the courtYeah but i like i said it it entirely depends on what you are quoting if you are quotingIf you basically what you can do what i've done on on top level module
Play episode from 18:31
Transcript


