alphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoThe lengths we have to go tosh.itjust.worksimagemessage-square128fedilinkarrow-up11.29Karrow-down135
arrow-up11.25Karrow-down1imageThe lengths we have to go tosh.itjust.worksalphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square128fedilink
minus-squareJakylla@sh.itjust.workslinkfedilinkEnglisharrow-up4arrow-down3·1 year ago4 Spaces, then one tab, then 3 spaces, then 2 tabs, then 2 spaces, then 3 tabs… Python supports that (and I hate this)
minus-squarerealaether@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-21 year agoPlease elaborate (eg which standard is this defined in?)
minus-squareJakylla@sh.itjust.workslinkfedilinkEnglisharrow-up1·1 year agoNot any standard (and actually not at all something to do for real), but try it, it works
minus-squarerealaether@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoThat’s really interesting. So does that mean the interpreter just checks whether the current line is more indented, less indented, or equal vs. the preceding, without caring by how much?
minus-squaregrozzle@lemm.eelinkfedilinkarrow-up1arrow-down1·1 year ago“indentation is indentation!” (mr_incredible_cereal.jpg) it may look messy, but would you actually rather Python didn’t support some inconsistency when the intent is clear? being exact just for the sake of being pedantic isn’t useful.
4 Spaces, then one tab, then 3 spaces, then 2 tabs, then 2 spaces, then 3 tabs…
Python supports that (and I hate this)
Please elaborate (eg which standard is this defined in?)
Not any standard (and actually not at all something to do for real), but try it, it works
That’s really interesting. So does that mean the interpreter just checks whether the current line is more indented, less indented, or equal vs. the preceding, without caring by how much?
“indentation is indentation!” (mr_incredible_cereal.jpg)
it may look messy, but would you actually rather Python didn’t support some inconsistency when the intent is clear?
being exact just for the sake of being pedantic isn’t useful.