Proposal for new minor syntax
Ben Finney
ben+python at benfinney.id.au
Fri Mar 27 19:39:04 EDT 2015
More information about the Python-list mailing list
Fri Mar 27 19:39:04 EDT 2015
- Previous message (by thread): Proposal for new minor syntax
- Next message (by thread): Proposal for new minor syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jamie Willis <jw14896.2014 at my.bristol.ac.uk> writes: > This could be written as: > > hello = "hello world " > hello .= strip() −1, “.=” is visually too similar to “=”. Syntax that is ambiguous at a glance is a cost when reading, and here I think the cost is great. > In this slightly contrived example, the programmer saved (a small amount > of) time when writing the code. Code is read much more often than it is written; we should optimise for reading effort, not writing effort. -- \ “The history of Western science confirms the aphorism that the | `\ great menace to progress is not ignorance but the illusion of | _o__) knowledge.” —Daniel J. Boorstin, historian, 1914–2004 | Ben Finney
- Previous message (by thread): Proposal for new minor syntax
- Next message (by thread): Proposal for new minor syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list