Closed fireproofsocks closed 4 years ago
I would recommend putting any defguard
right above the regular def
functions, but after all of the module attributes, import directives, types, defstruct
, etc.
Here's an example from the Integer module.
Also, because "Guards" are listed before "Functions" in the documentation, this feels like a natural placement order.
Should we add this to our Modules section?
Thanks for the thorough guide!
Is there a comment somewhere that would advise where to put
defguard
?