velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: EscapeTool (and velocity-tool best practices)
Date Thu, 09 Dec 2004 22:44:14 GMT
Interesting.  I've never used CharSequence, but the patch looks useful, even 
if we don't
go with full toString() equality.

Let's move this to the developer's list if there's any further discussion.

Best,

WILL

----- Original Message ----- 
From: "Shinobu Kawai" <shinobu.kawai@gmail.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Thursday, December 09, 2004 2:29 PM
Subject: Re: EscapeTool (and velocity-tool best practices)


> Hi Will,
>
>> To carry this further, I've proposed previously that the "==" operator
>> have
>> a fallback to toString equality.  In other words if the user does
>> #if ($a == $b)
>>
>> If a and b are the same class, it should call equals(), but otherwise it
>> should call toString.equals().
>
> Here's a somewhat related bugzilla issue:
>   http://issues.apache.org/bugzilla/show_bug.cgi?id=32179
>   (Workaround the lack of equality in CharSequence.)
>
> Best regards,
> -- Shinobu Kawai
>
> --
> Shinobu Kawai <shinobu.kawai@gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message