olls / graphics

A console based graphics engine for simple Unicode games and animations.
GNU General Public License v3.0
11 stars 4 forks source link

Duck Typing #20

Closed olls closed 10 years ago

olls commented 10 years ago

(This continues from #15 )

I've decided not to do so much validation, checking every class type, and failing if it isn't what I was expecting. I'm going to do it in a more duck typing style, and let python sort out the error messages. This means the errors overall are more meaningful and my code is much cleaner.

I've also decided to get rid of a lot of my 'getters' and 'setters' which were cluttering things up and unnecessary, and I'm just using plain public variables with properties if they need some validation.