"prop" not "pro" for properties
Posted: Mon May 18, 2009 2:41 pm
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
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