DEV Community

Discussion on: Write Unbreakable Python

Collapse
jcoelho profile image
José Coelho • Edited on

Writing pure functions is not as simple as you make it be, otherwise we could write code without bugs.
For example your function ´get_last_name(object)´ which you claim to be pure, is actually not.
And it will fail very easily, if object is not of type Iterable.

Still I found this article very interesting and made me think a lot about how I code. Thanks ;)