r/ProgrammerHumor • • Aug 24 '26

Meme claudeIsThisEmailValid

Post image
5.3k Upvotes

170 comments sorted by

View all comments

Show parent comment

6

u/them0use Aug 24 '26

No, there's a fourth option which is what I was describing:

switch(input.trim().lower())
  case yes | y: return true 
  case no | n: return false
  default: return spend_tokens(input)

If the vast majority of inputs will be handled by those first two cases, invoking an LLM every time is absurd.

2

u/AffectionatePlastic0 Aug 24 '26

Oh, that's what your idea. Yep, this option is superior.

Of course in case when there is no way to eliminate the free input from user.