top | item 43752336

(no title)

MR4D | 10 months ago

Dang! Thanks for pointing this out.

I had to look SEVERAL times at your comment before I noticed one is an F and the other is a T.

This won’t end well. Although I like it conceptually, this few pixel difference in a letter is going to cause major problems down the road.

discuss

order

pphysch|10 months ago

How? tstrings and fstrings are literals for completely different types.

CS has survived for decades with 1 and 1.0 being completely different types.

Certhas|10 months ago

I had an extended debugging session last week that centered on 1 and 1. confusion in a library I have to use...

MR4D|10 months ago

Reread my comment. It’s about noticing you have an “f” or a “t” and both are very similar characters.

Izkata|10 months ago

Because they're both passed to "execute", which can't tell between the f-string and a non-interpolated query, so it just has to trust you did the right thing. Typoing the "t" as an "f" introduces SQL injection that's hard to spot.