DEV Community

Discussion on: What do you dislike about your favorite language?

Collapse
 
_bigblind profile image
Frederik 👨‍💻➡️🌐 Creemers

In Python, if you write multiple strings adjacent to each other, Python concatenates them. For me, this often leads to annoying bugs like

l = [
    "A",
    "B"
    "C",
    "D"
]

print l
# prints ["A", "BC", "D"]
Collapse
 
val_baca profile image
Valentin Baca

You can thank ISO C for that one:

Not that python directly inherits the behavior, but they probably decided to go with that behavior based on how C does it.

Collapse
 
nektro profile image
Meghan (she/her)

Ouch! Haha yeah I can see how that hide it self well!