Judson, Ross | 11 Feb 22:42
Favicon

RE: Re: [ANN] Scala 2.7.0-RC1

Do implicits work with the annotated types? This can yield some nice
benefits, like automatically doing a security check on a session object
if the callee declares a @SecurityChecked annotation on the parameter.
Having an extra "dimension" of type information will find many uses.

RJ 

Lex Spoon | 12 Feb 23:24

Re: [ANN] Scala 2.7.0-RC1

Judson, Ross wrote:
> Do implicits work with the annotated types? This can yield some nice
> benefits, like automatically doing a security check on a session object
> if the callee declares a @SecurityChecked annotation on the parameter.
> Having an extra "dimension" of type information will find many uses.
> 

That does sound useful, but it would mean that an annotation can change 
the behavior of the program even when no plugins are loaded.  I lean 
towards Bracha's view, and that of Java's annotations, in suspecting 
this kind of overloading would be too tricky for programmers to 
understand what is happening.  Thus, leaving aside reflection, the 
behavior of a program should not change if you remove annotations.

What you could do, now, is *track* whether security checks have 
happened, and generate compile time errors if the programmer claimed 
something is @SecurityChecked when this cannot be verified.

-Lex

David Pollak | 11 Feb 23:02
Gravatar

Re: Re: [ANN] Scala 2.7.0-RC1

Ooohhh... this sounds wicked cool.  I'd love to hear "yes it works" and 
then see an example.

Judson, Ross wrote:
> Do implicits work with the annotated types? This can yield some nice
> benefits, like automatically doing a security check on a session object
> if the callee declares a @SecurityChecked annotation on the parameter.
> Having an extra "dimension" of type information will find many uses.
>
> RJ 
>   

Viktor Klang | 11 Feb 23:44
Picon

Re: Re: [ANN] Scala 2.7.0-RC1



On Feb 11, 2008 11:02 PM, David Pollak <dpp <at> athena.com> wrote:
Ooohhh... this sounds wicked cool.  I'd love to hear "yes it works" and
then see an example.

+x!
 


Judson, Ross wrote:
> Do implicits work with the annotated types? This can yield some nice
> benefits, like automatically doing a security check on a session object
> if the callee declares a <at> SecurityChecked annotation on the parameter.
> Having an extra "dimension" of type information will find many uses.
>
> RJ
>




--
_____________________________________
/                                                                 \
       /lift/ committer (www.liftweb.net)
     SGS member (Scala Group Sweden)
 SEJUG member (Swedish Java User Group)
\_____________________________________/

Gmane