Code in comments, really?
Code in comments, really?
Posted Dec 25, 2014 1:07 UTC (Thu) by marcH (subscriber, #57642)In reply to: Type hinting for Python by proski
Parent article: Type hinting for Python
> Comments are comments - they are highlighted in a specific way, they are seen as a message from the code author to the human reading the code.
If only humans were the only potential problem. A lot of "meta" development tools (editors, IDEs, etc.) read comments too. Imagine their confusion now.
Code in comments, what an horror. Not familiar enough with Python for this question, but isn't there some concept of "annotations" as a much better solution here?