dimanche 17 juillet 2016

how about this approach, swift design pattern

I have this idea that says if you have any function that returns one of the designed Data Structure (like: Int, String...etc) you should write it in extension, and you can use private extension if you have private class!, And if this method somehow associated with specific object we can use use self.getClassName or return nil.

so what do you think about this approach ?

Aucun commentaire:

Enregistrer un commentaire