Forums

"prop" not "pro" for properties

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

"prop" not "pro" for properties

Postby reuleaux » 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
reuleaux
 
Posts: 1

Re: "prop" not "pro" for properties

Postby Charles » Mon May 18, 2009 2:51 pm

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
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 26 guests