@[email protected] to Programmer [email protected] • 1 year agoC++ Momentlemmy.worldimagemessage-square156fedilinkarrow-up11.04K
arrow-up11.04KimageC++ Momentlemmy.world@[email protected] to Programmer [email protected] • 1 year agomessage-square156fedilink
minus-square@[email protected]linkfedilink10•1 year agoWhy would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times…
minus-square@[email protected]linkfedilink9•edit-21 year ago Why would I use spaces if I use tabs? To comply with Python’s best practices: https://peps.python.org/pep-0008/ Also, if you work on the Linux Kernel, you’ll see a mix of tabs and spaces: https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390 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?
minus-square@[email protected]linkfedilinkEnglish2•1 year agoTo 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.
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…
deleted by creator
To comply with Python’s best practices:
https://peps.python.org/pep-0008/
Also, if you work on the Linux Kernel, you’ll see a mix of tabs and spaces:
https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390
You use an editor that doesn’t auto-indent?
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 😁