<div class="gmail_quote">On 20 October 2011 13:37, Joel Reymont <span dir="ltr"><<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a record with about 80 fields.<br>
<br>
I'm in dialyzer hell because this record is in a header file and used all over the place.<br>
<br>
I would like to make this record opaque and completely encapsulate it in a single file.<br>
<br>
Should I export getters and setters for each field?<br></blockquote><div><br></div><div>No idea about the rest of these questions, but look at <a href="https://github.com/esl/parse_trans/blob/master/src/exprecs.erl">https://github.com/esl/parse_trans/blob/master/src/exprecs.erl</a> to automate generating accessor functions if you decide you need them.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Would these be inlined by the compiler?<br>
<br>
Is ETS a suitable replacement for a record of this size?<br>
<br>
        Thanks, Joel<br>
<br>
--------------------------------------------------------------------------<br>
- for hire: mac osx device driver ninja, kernel extensions and usb drivers<br>
---------------------+------------+---------------------------------------<br>
<a href="http://wagerlabs.com" target="_blank">http://wagerlabs.com</a> | @wagerlabs | <a href="http://www.linkedin.com/in/joelreymont" target="_blank">http://www.linkedin.com/in/joelreymont</a><br>
---------------------+------------+---------------------------------------<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>