My mind has been blown.

In "A Tour of C++", Stroustrup reminds the reader that type casting is called "cast" so that you know it's a crutch, to hold something broken together.

With English not being my first language, I grew up discovering "casting" and thought of it as a magic trick as a young teen.

Over the years, I also discovered the use of "cast iron pans" and "orthopedic casts".

I never again thought about type casting; it was a term of art by then. But of course it's still a metaphor

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/ctietze/statuses/114240416595945432 on your instance and quote it. (Note that quoting is not supported in Mastodon.)