News for hackers. Stuff that matters.
Re:Why F#? by sparkie on Wednesday April 02, 2025 @01:22PM (#43559043)
Dynamic typing can forbid the latter (at runtime), but it's implementation dependent. There's a further distinction, Latent typing, which is where types are associated with values rather than variables.

But a dynamic language can have types associated with variables, and it can forbid changing those types after their types have been checked the first time.

Re:Why F#? by volemo on Wednesday April 02, 2025 @04:10PM (#43560968)
> But a dynamic language can have types associated with variables, and it can forbid changing those types after their types have been checked the first time.

So, like C++ with `auto`?

Re:Why F#? by sparkie on Friday April 04, 2025 @04:20PM (#43587219)
`auto` is still using static typing, and is a tool for type inference. A dynamically typed version might look equivalent but would behave differently, failing at runtime rather than compile time.