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

196

16293 readers
2545 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (2 children)

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

[–] Cabrio 3 points 1 year ago* (last edited 1 year 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 1 year 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.