r/shittyprogramming • • Jun 11 '21

Command line is_even utility

Post image
101 Upvotes

11 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jun 11 '21

[deleted] — view deleted comment

5

u/PityUpvote Jun 11 '21

I wish I could forget.

2

u/TTGG Jun 11 '21

Why?

1

u/PityUpvote Jun 11 '21

Because I'm not even sure why it exists. I'm sure there's a valid reason to not make this the default behavior of =, but the use cases are so extremely narrow.

4

u/jorizzz Jun 11 '21

Did you also forget f-strings?

6

u/iamasuitama Jun 11 '21

I don't think he did, he uses it in the last line