An open API service indexing awesome lists of open source software.

https://github.com/stoufa/smalltalk-conditionals-in-python

Emulating Smalltalk's Conditionals in Python
https://github.com/stoufa/smalltalk-conditionals-in-python

conditional-statements oop-principles python smalltalk

Last synced: 2 months ago
JSON representation

Emulating Smalltalk's Conditionals in Python

Awesome Lists containing this project

README

        

# smalltalk-conditionals-in-python

Emulating Smalltalk's Conditionals in Python

Influenced by the talk of Sandi Metz [Nothing is Something](https://www.youtube.com/watch?v=OMPfEXIlTVE), I started thinking how to apply these rules on Python. Like Ruby, Python also contains the keyword `if`, so how to transform its conditional syntax to a nicer Object-oriented message-sending syntax ?


  If you found this helpful, consider helping me by sending some Bitcoins to the following address. Thank you 😊


15m4Prjz4WLSsCgBcZTa62cUetiwo6sZKg