329
parseInt(5) (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] qqq@lemmy.world 13 points 8 hours ago* (last edited 8 hours ago)

Could be a variable from somewhere else in the code. It should throw type error of some sort if it's not going to handle a float correctly

[-] victorz@lemmy.world 1 points 5 hours ago

Agreed, functions in general should do this, and some do. But it should probably be automatic. And the variable argument is a good one, a very good argument for TypeScript. ❤️

this post was submitted on 05 May 2025
329 points (98.8% liked)

Programmer Humor

23025 readers
1408 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 2 years ago
MODERATORS