[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-dev
Subject:    =?gb2312?B?UmU6IFtncm9vdnktZGV2XSByZW5hbWUgb3duZXIgdG8gZGVjbGFyZXI=?=
From:       "=?gb2312?B?V2FuZyBCaW4=?=" <binwbwang () 163 ! com>
Date:       2005-04-09 11:46:15
Message-ID: 4257C087.000022.03328 () m117 ! 163 ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

I absolutely agree with it. We should modify anything before release if it is reasonable.

> Hi,
> 
> a small implementation issue.
> 
> Closures have the magic variable "owner" to refer to
> the object that declared them.
> 
> I would like to rename this variable to "declarer".
> 
> I feel "owner" leads to the misconception that the
> object somehow "owns" the Closure, i.e. holds at least
> a reference to it.
> But the reference is in the opposite direction.
> 
> "declarer" would further help to distinguish between
> the object that declared the Closure and the one that
> calls it. "owner" isn't as specific on this point.
> 
> I know, this is an API change and may break some
> existing code.
> 
> any opinions?
> Mittie
>  


[Attachment #3 (text/html)]

I absolutely agree with it. We should modify anything before release if it is \
reasonable.<br><br>&gt; Hi,<br>&gt; <br>&gt; a small implementation issue.<br>&gt; \
<br>&gt; Closures have the magic variable &quot;owner&quot; to refer to<br>&gt; the \
object that declared them.<br>&gt; <br>&gt; I would like to rename this variable to \
&quot;declarer&quot;.<br>&gt; <br>&gt; I feel &quot;owner&quot; leads to the \
misconception that the<br>&gt; object somehow &quot;owns&quot; the Closure, i.e. \
holds at least<br>&gt; a reference to it.<br>&gt; But the reference is in the \
opposite direction.<br>&gt; <br>&gt; &quot;declarer&quot; would further help to \
distinguish between<br>&gt; the object that declared the Closure and the one \
that<br>&gt; calls it. &quot;owner&quot; isn't as specific on this point.<br>&gt; \
<br>&gt; I know, this is an API change and may break some<br>&gt; existing \
code.<br>&gt; <br>&gt; any opinions?<br>&gt; Mittie<br>&gt;  <br><!-- urlfiles \
--><br><br><!-- footer --><br><br><br> <font style="font-size:14.8px">
<!--¹ã¸æfooter ¿ªÊ¼-->
<!--¹ã¸æfooter ½áÊø-->

<!--ÄÚ²¿footer¿ªÊ¼-->
<br>
<a href="http://www.188.com/index.htm?from=" target="_blank"><img \
src="http://mimg.mail.188.com/images/footer_188s2.gif" border=0 width=70 height=69 \
align=left></a> <br><p style="line-height:250%;">
&nbsp;&nbsp;<a href="http://www.188.com/index.htm?from= target="_blank"><font \
color=blue>ÍøÒ×188²Æ¸»ÓÊ--²Æ¸»µÄÏóÕ÷£»È«Ð ¿ª·Å, <font \
color=red>·á¸»Óû§Ãû</font>µÈÄú×¢²á</a><br>

&nbsp;&nbsp;<a href="http://www.188.com/index.htm?from=" \
target="_blank">×î´ó</font><font color=red><b>5G</b></font><font \
color=blue>¿Õ¼ä£¬¸½¼þ</font><font color=red><b>40Õ×</b></font><font \
color=blue>ÊÕ·¢£»Ãâ·Ñ×¢²áÌåÑé http://www.188.com/</a> <img \
src="http://mail.126.com/favicon.ico" width=16 height=16 border=0 align=absmiddle> \
</p> <!--ÄÚ²¿footer½áÊø-->
</font>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic