I use a syntax like this:<br><br>(methcall 't-string object param1 parm2 param3)<br><br>=> object.tString(param1, param2, param3).<br><br>It's basically a shortcut for ((slot-object ...) param1 ...) but I have found it to be more readable.  <br>
<br>When I need a long string of dot-separated identifiers (e.g. foo.bar.viz) I use (slot-value foo 'bar 'viz) => foo.bar.viz<br><br>What other syntax do people use to deal with dotted objects in Parenscript?  I try to avoid them if possible, perhaps because the current syntax is verbose.<br>
<br>Red<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 9:42 AM, Clinton Ebadi <span dir="ltr"><<a href="mailto:clinton@unknownlamer.org">clinton@unknownlamer.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">John Fremlin <<a href="mailto:john@fremlin.org">john@fremlin.org</a>> writes:<br>
<br>
> Hi Vladimir,<br>
><br>
> It seems that the new parenscript horribly breaks tpd2.<br>
><br>
> The awful part of the business is changing from using elements.push etc.<br>
> methods.<br>
><br>
> You seem to recommend to rewrite them as ((slot-value elements 'push)<br>
> new-thing).<br>
><br>
> This is completely not at all related to Common Lisp syntax, which was<br>
> supposedly the aim of this change, so I guess I am barking up the wrong<br>
> end of the stick.<br>
><br>
> Should I wait for the reader macros before making the update?<br>
<br>
</div>I've been tasked with re-adding the shorthand syntax to parenscript [0]<br>
in the symbol-syntax if you need these features. Right now it only does<br>
(.method ...)  syntax, but sometime today or tomorrow I'll have<br>
(foo.bar.baz) expanding to ((slot-value foo 'bar) 'baz). I'm not sure<br>
whether it is worthwhile keeping foo[bar] syntax; (aref foo bar) is not<br>
particularly less convenient.<br>
<br>
If upstream will not accept the changes this will be maintained as part<br>
of UCW again (probably renamed to avoid conflicts; since ps no longer<br>
uses the js package we'll move back there). I'll try to keep up with<br>
merges from upstream and whatnot as well.<br>
<br>
[0] <a href="http://git.hcoop.net/?p=clinton/parenscript.git;a=summary" target="_blank">http://git.hcoop.net/?p=clinton/parenscript.git;a=summary</a><br>
<font color="#888888">--<br>
<captain_krunk> ntk is currently using "telnet fyodor 25" to send email<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
parenscript-devel mailing list<br>
<a href="mailto:parenscript-devel@common-lisp.net">parenscript-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel</a><br>
</div></div></blockquote></div><br>