1349
D or d come on (i.imgur.com)
you are viewing a single comment's thread
view the rest of the comments
[-] lemmonade@lemm.ee 9 points 1 year ago

You could also say that down should not complete to download since those are completely different strings and you shouldn't expect one to get you the other.

[-] Feyter@programming.dev 3 points 1 year ago

Sorry, down is a substring of download I don't get your point either?

[-] Honytawk@lemmy.zip 4 points 1 year ago

Substring is not string.

If they were interchangeable, then "D" & "d" should be too.

[-] Feyter@programming.dev 2 points 1 year ago

down matches down* because * also includes empty string. Also download matches down*

D matches D* but d is not matching D* because D is a different character than d.

this post was submitted on 02 Oct 2023
1349 points (96.6% liked)

Programmer Humor

19274 readers
688 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS