<div dir="ltr">In rutilsx I have called generic access operator ? - see here: <a href="https://github.com/vseloved/rutils/blob/master/contrib/generic.lisp">https://github.com/vseloved/rutils/blob/master/contrib/generic.lisp</a><div>It allows the accessor code to stand up a bit, which I consider a good property. It is also chainable.</div><div><br></div><div>Here's an example usage (totals, weights and timestamps here are hash-tables of hash-tables):</div><div><br></div><div><div>(defmethod update1 ((model avg-perceptron) f class val)</div><div> (with-slots (step timestamps weights totals) model</div><div> (incf (? totals class f) (* (- step (? timestamps class f))</div><div> (? weights class f)))</div><div> (incf (? weights class f) val)</div><div> (setf (? timestamps class f) step)))</div></div><div><br></div><div><div>AT also seems a decent choice</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">---<br><div>Vsevolod Dyomkin<br></div><div><div>+38-096-111-41-56</div><div>skype, twitter: vseloved</div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Feb 4, 2016 at 8:03 PM, Antoniotti Marco <span dir="ltr"><<a href="mailto:antoniotti.marco@disco.unimib.it" target="_blank">antoniotti.marco@disco.unimib.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Dear all,
<div><br>
</div>
<div>in the quest for RESTHBDB) RE-doing Stuff That Has Been Done Before) I am trying to come up with a name for a referencing/dereferencing operator.</div>
<div><br>
</div>
<div>Think of something like</div>
<div><br>
</div>
<div><font face="Courier New">(<name-of-reference-operator> #2A((1 0) (0 1)) 0 0)</font> ==>
<font face="Courier New">1</font></div>
<div><br>
</div>
<div>of</div>
<div><br>
</div>
<div><font face="Courier New">(<name-of-reference-operator> #H((foo . bar) (we . 42)) ‘foo)</font> ==>
<font face="Courier New">BAR</font> ; I am cheating. <font face="Courier New">
#H(..)</font> is a hash table.</div>
<div><br>
</div>
<div>SETF methods will be defined as expected.</div>
<div><br>
</div>
<div>Now. What could be a good name? I have the following list.</div>
<div><br>
</div>
<div><font face="Courier New">REF</font></div>
<div><font face="Courier New">REF$</font></div>
<div><font face="Courier New">[]</font></div>
<div><font face="Courier New">[[]]</font></div>
<div><font face="Courier New">AT</font></div>
<div><font face="Courier New">@</font></div>
<div><font face="Courier New">GETAT</font></div>
<div><br>
</div>
<div>What do you think? (Full disclosure: I usually refrain from taking up non alphabetic names)</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>MA</div>
<div><br>
<div>--<br>
Marco Antoniotti, Associate Professor<span style="white-space:pre-wrap">
</span>tel.<span style="white-space:pre-wrap"> </span>+39 - 02 64 48 79 01<br>
DISCo, Università Milano Bicocca U14 2043<span style="white-space:pre-wrap">
</span><a href="http://bimib.disco.unimib.it" target="_blank">http://bimib.disco.unimib.it</a><br>
Viale Sarca 336<br>
I-20126 Milan (MI) ITALY<br>
<br>
Please check: <a href="http://cdac.lakecomoschool.org" target="_blank">http://cdac.lakecomoschool.org</a><br>
<br>
Please note that I am not checking my Spam-box anymore.<br>
Please do not forward this email without asking me first.<br>
<br>
<br>
<br>
<br>
</div>
<br>
</div>
</div>
</blockquote></div><br></div>