MoeOrganization / moe

An -OFun prototype of an Ultra Modern Perl 5
http://moe.iinteractive.com
MIT License
278 stars 46 forks source link

Use Option for MoeClass' superclass #9

Closed gphat closed 11 years ago

gphat commented 11 years ago

Again, no nulls. Replaces some of the if/then logic with map/getOrElse and leaves others with boolcheck/get.

The idea here is to replace all these null checks with Option all the way up the stack.

Also, as a thought: Should these things be mutable? addMethod/addAttribute could return a MoeClass… :)

stevan commented 11 years ago

Should these things be mutable? addMethod/addAttribute could return a MoeClass… :)

Wha? I don't get what you mean here, please provide more context.

gphat commented 11 years ago

Must a MoeClass et al be mutable?