News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by ReflectedImage on Thursday October 05, 2023 @07:55PM (#37785717)
I think we are at max reply depth but here is the trivial dynamically typed solution to the problem: https://pastebin.com/UZvB5YD1

It's a little bit simpler than anything you will get in an statically typed language. It works for integer and floats of any size. It even works for lists!

You can't do that in a statically typed language without a ton of code.

Re:Strong typing, a hill I'm willing to die on by fennecfoxy on Friday October 06, 2023 @10:39AM (#37791403)
https://pastebin.com/gcsNs6Sw

Oh, look. Something that statically typed languages solves.

Re:Strong typing, a hill I'm willing to die on by ReflectedImage on Friday October 06, 2023 @03:01PM (#37794790)
That problem is also solved by dynamically typed languages. Your IDE picks it up.
Re:Strong typing, a hill I'm willing to die on by fennecfoxy on Monday October 09, 2023 @10:30AM (#37820807)
True, but if I know devs and management's "last minute and underplanned" culture IDEs can be ignored.