[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>> Hi,<br>> <br>> a small implementation issue.<br>> \
<br>> Closures have the magic variable "owner" to refer to<br>> the \
object that declared them.<br>> <br>> I would like to rename this variable to \
"declarer".<br>> <br>> I feel "owner" leads to the \
misconception that the<br>> object somehow "owns" the Closure, i.e. \
holds at least<br>> a reference to it.<br>> But the reference is in the \
opposite direction.<br>> <br>> "declarer" would further help to \
distinguish between<br>> the object that declared the Closure and the one \
that<br>> calls it. "owner" isn't as specific on this point.<br>> \
<br>> I know, this is an API change and may break some<br>> existing \
code.<br>> <br>> any opinions?<br>> Mittie<br>> <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%;">
<a href="http://www.188.com/index.htm?from= target="_blank"><font \
color=blue>ÍøÒ×188²Æ¸»ÓÊ--²Æ¸»µÄÏóÕ÷£»È«Ð ¿ª·Å, <font \
color=red>·á¸»Óû§Ãû</font>µÈÄú×¢²á</a><br>
<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