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
Forums
"prop" not "pro" for properties
2 posts
• Page 1 of 1
Re: "prop" not "pro" for properties
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
var
def
pro
get
set
HTH,
-Chuck
- Charles
- Posts: 2515
- Location: Los Angeles, CA
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 37 guests