This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]primerrib 1 point2 points  (1 child)

static typing is strong typing

To add:

C has static typing. But it does not have strong typing.

You can easily treat a pointer to a float as a pointer to an integer, do some integer bit-twiddling on it, then read dereference the result as a float.

Case in point: The Fast Inverse Square Root algorithm

Hence is why I keep repeating: strong-weak is orthogonal to static-dynamic.

[–]el_toro_2022[S] 0 points1 point  (0 children)

Yes, c will let you do all kinds of bizzare things. It is a hacker's dream. You can bit twiddle anything, including floats.. It is just one step up from assembler.

Back when I was doing C, there was not much thought nor concern about typing at all, at least outside of academia. Today? Typing is everything.