Re: vote on prop keyword

Paul Prescod <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Lenard Lindstrom wrote:

>...
> 
> I have no problems with the prop keyword. But if it is a shorthand then is
> it necessary for "def"s before get_, set_, and del_?
> 
> object Widget:
>     price = 3.72
>     prop tax:
>         get_():  # There is no "def" here
>             return self.price * 0.03

It will be easier for the programmer, the parser and third-party tools 
if the syntax for function definition is uniform.

  Paul Prescod
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.