Page 1 of 1

"prop" not "pro" for properties

PostPosted: Mon May 18, 2009 2:41 pm
by reuleaux
I really haven't spend a lot of time with cobra yet, I just skimmed through the docs,
especially the Python - Cobra comparison,
http://cobra-language.com/docs/python/

One thing that struck me right away:

While I like the idea of built in properties (as in the example code)

# Cobra
class Person
var _name = '(noname)'
pro name as String
get
return _name
set
require value
_name = value

I think "prop" would have been a better choice for "property" than
"pro" - the latter has more a connotation of pro/contra to me.

Just my two cents.

-A

Re: "prop" not "pro" for properties

PostPosted: Mon May 18, 2009 2:51 pm
by Charles
By itself, I agree that "prop" reads better than "pro". But these are all 3 letters so that declarations line up well:

var
def
pro
get
set

HTH,
-Chuck