C++ Moment - Lemmy.World

Python: So you used spaces and tabs for indentation? NOW DIE!
Mixing spaces and tabs should be a warcrime.

Find me anyone who claims they use tabs for indentation, and I bet I’ll find at least one case where they’re using both tabs and spaces.

The only safe way to avoid war crimes is to avoid tabs.

Why would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times…

Why would I use spaces if I use tabs?

To comply with Python’s best practices:

peps.python.org/pep-0008/

Also, it seemd like a huge waste of time hitting the space bar so many times…

You use an editor that doesn’t auto-indent?

PEP 8 – Style Guide for Python Code | peps.python.org

This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python.

Python Enhancement Proposals (PEPs)
I assume this was a joke 😁
I use vi without syntax highlighting.
Please don’t hack me, mister FBI
To be fair you can totally bind an arbitrary number of spaces to tab in vi. I’ll dig out the syntax highlighting file some time. Oh and I use vim really.
I do use neovim myself too 😁