← Back to team overview

ooc-dev team mailing list archive

Re: properties syntax

 

> So I was thinking of something like that:
> 
> class Sumthin {
> 
>   Int secret;
> 
>   setter(secret) {
>     // We obviously have one parameter of type secret. But what's its
name?
>   }
> 
>   getter(secret) findTheSecretName {
>     // Custom-name setter: information hiding..
>   }
> 
> }
> 
> Of course it's far from perfect, but what do you think ? Point 1) of my
> requirements is only half filled by this suggestion, but it's the most
> obvious that I can see.
> 
I really like it a lot!




Follow ups

References