On 10/25/21 6:54 AM, Eric V. Smith wrote:
> On 10/25/2021 8:26 AM, Chris Angelico wrote:

>> If it's done with syntax, it can have special behaviour. If it looks
>> like a function call (or class constructor), it doesn't look like it
>> has special behaviour.
>
> This has been mentioned before, but I'll say it again: It doesn't need to be 
syntax in the sense of non-ascii
> characters, it could be a (soft) keyword:
>
> def process_files(processor, files=deferred os.listdir(DEFAULT_DIR)):

I agree.  My two favorite bike-shed colors are

- `deferred` soft keyword
- @ in the front

Both options make it much clearer that something special is happening, whilst all of the in-the-middle options can be easily missed.

--
~Ethan~
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/BSEBMA7GZRIJEBC2Q5MIJBOFAWSD4QPU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to