this post was submitted on 05 Sep 2023
104 points (97.3% liked)

196

15683 readers
4542 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
all 10 comments
sorted by: hot top controversial new old
[–] Moc 27 points 10 months ago (1 children)

gender: String

How hard was that?

[–] [email protected] 19 points 10 months ago* (last edited 10 months ago)
fix: Replace broken gender concept
- gender: bool
+ gender: float
[–] youCanCallMeDragon 15 points 10 months ago (1 children)

Republican programmers are going to have rethink some things after this

[–] _stranger_ 6 points 10 months ago

Republican programmers are forcing typing on python.

[–] [email protected] 4 points 10 months ago (2 children)

Could someone give an explanation for all the people that are not that deep in the programming sauce.

[–] Cabrio 3 points 10 months ago* (last edited 10 months ago)

Typecasting is the action of defining data (in this case people) depending on how it's to be processed.

Explicit typecasting is the rigid defining of data in these types and can only be processed as that type of data.

Implicit typecasting will transpose data between types interchangeably depending on how the data is being processed.

A more comprehensive explanation would require a class on data structures.

[–] [email protected] 3 points 9 months ago

This meme is nonsense even if you are a programmer. Explicit typing does not limit you to two options, it just means all values need to be typed.

[–] redempt 1 points 10 months ago

this makes no sense no matter how I try to look at it

[–] UnfortunateShort -2 points 10 months ago (1 children)

Uhm, that's kinda not how any of this works. You can have types that you can cast to anything and a type doesn't have to be binary just because it's to be explicitly casted either. You can also have implicit but limited typecasting.