Another excellent article on Python has me questioning why.
Python’s Print() Does What!?!?
Alamar ・ D...
For further actions, you may consider blocking this person and/or reporting abuse
Your examples make D look like a pretty unreadable language.
There's no clear indication that you're working on the
text.txtinside thewith, andwritejust magically changes target.Yeah, D programmers rearly utilize
witheven with limited scope it can hide the origin. The main thing here is to create a scope to automatically callclose()like in Python.But D also provides an explicit cleanup since, not all cleanup is the same, and not everything is expected to clean up at scope exit
Nice post! I haven’t really seen much of D before this post, and I have to say it looks surprisingly readable!