[erlang-questions] What is the best location to place common type specs?

Zhemzhitsky Sergey <>
Thu Jul 5 14:07:09 CEST 2012


Hi guys,

I have multiple .hrl files with multiple records. I’d like to define separate types for these records and their fields.
These records will be used across multiple modules, and I’m wondering whether it is legal to define type specs in the hrl files?
Or would it be better to have a separate module with exported common type specs?


Best Regards,
Sergey


_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120705/d658d536/attachment.html>


More information about the erlang-questions mailing list