Sorry, I have overlooked this email

I haven't used "as" method... so I don't have preference.
However, compatibility should be maintained imho.

Cheers
Hasan

On 05/04/2010 07:46 PM, Reto Bachmann-Gmuer wrote:
Currently with the scala rdf utilities a literal can be converted to a java
object as follows:

lit.as(classOf[java.util.Date])

by using an implicit Manifest argument this can be siplyfied to
lit.as[java.util.Date]

unfortunately this doesn't work when having to overloaded as-methods.

So the alternatives are
1. change the as-method, breaking code (ScalaServerPages) that use the as
method
2. use a new name, like "to" for the new easier method

I guess that the as method is rarely used so I suggest the first option if
nobody cries or suggests a better name than "as" (so we could deprecate the
public as-method maintaining compatibility) I'll change the method
signature.

CHeers,
reto


--
  Hasan Hasan
  trialox AG
  Binzmühlestrasse 14, CH-8050 Zürich
  Tel: +41 44 635 7577
  Fax: +41 44 635 7574
  URL: http://trialox.org

Reply via email to