@whitequark Well, honestly, I think it raises the entry threshold for reading this code. Now if you have all the knowledge necessary to read it, is it actually easier to read it if it's written like this? I imagine no, but I'm not an expert, so idk. I think it may be good in context where it's not expected to change at all however far into the future and it's just easier for you to write like this or you want to show off (nothing wrong with it in and of itself!)
@sanfierro so the reason it's written like this is because I don't want to pollute the global namespace with f which would happen if I ran e.g. with open() as f: normally
Add comment