<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it possible to use elixir to emulate objects on top of gen_server<br>
with their "instance variables" which are just fields of record?<br>
</blockquote></div><br><div>Elixir does not have the concept of objects. So you have to do the same as Erlang. You need to create a record and access/manipulate the records fields. There is a difference that Elixir records are not a preprocessor feature, so access/manipulation is less verbose.</div>