this post was submitted on 14 Jan 2025
433 points (90.6% liked)

Programmer Humor

34884 readers
91 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 16 points 2 months ago* (last edited 2 months ago) (3 children)

Gender is not a boolean value, it's a variable.

[โ€“] [email protected] 25 points 2 months ago* (last edited 2 months ago) (1 children)

๐Ÿšซ const gender

๐Ÿ‘‰ var gender

[โ€“] [email protected] 9 points 2 months ago (2 children)

khm, khm
let gender

please don't use deprecated syntax

[โ€“] [email protected] 6 points 2 months ago

May be gdscript

[โ€“] [email protected] 1 points 2 months ago

But that's immutable ๐Ÿฆ€

[โ€“] [email protected] 14 points 2 months ago (1 children)

And liable to type conversion errors and precision loss.

[โ€“] [email protected] 9 points 2 months ago

Jesus, why'd you have to bring floating point and machine precision into the conversation? Now I won't sleep. And the nightmares will be worse than before.

[โ€“] [email protected] 5 points 2 months ago

A boolean variable?