Ingredients:
- Set variables to read only mode:
- Unluckily cannot be done, the only work around is with deep-copying or removing the setattr of each variable.
- Or maybe create a decorator like
@assert_function_is_pure
- OPTIONAL: no need to pass
locals()every time with inspect - Understand how to create a “with” command:
- How to create a new python-keyword like “assert”:
- Add functionality to the IDE (Sublime Text) to support the use of code anchor, specifically when creating a new block of code i want to see the original code I’m working with, the code should be more gray-like and it shouldn’t be possible to change it.