briandconnelly / seeds

Stochastic Cellular Artificial Life Simulator
Other
20 stars 4 forks source link

Stop using reserved words #66

Open briandconnelly opened 12 years ago

briandconnelly commented 12 years ago

Reserved words are used all over the place. Change those names to avoid any issues.

Problems: id type format

briandconnelly commented 12 years ago

id is no longer used in Python 3.

Since these are used in modules, it's not technically a problem, but it may still be bad form.

nahumj commented 12 years ago

It is indeed bad form. I'm willing to take a stab at if, but I need more time to become familiar with the code base.

briandconnelly commented 12 years ago

After a lot of searching, it seems that "type" is the only bad one used (to refer to a cell's strategy). I'm open to suggestions for other names. "Phenotype" seems a bit much, "strategy" doesn't feel right, and I draw a blank after that.