News for hackers. Stuff that matters.
Re:We Need Programming Mentors by jacoblambda on Saturday February 11, 2023 @06:51AM (#34751539)
> Dynamically typed languages can have strong type systems, eg Haskell, some parts of Rust can be inferred.

To be strictly accurate, Rust and Haskell both have strict type systems. It's just that like you mentioned, the types are often inferred at compile time via type inference rules.

This differs from dynamically typed languages as inferred types always have a statically known type while dynamic types have a type which is interpreted at runtime and which can be reinterpreted.

Re:We Need Programming Mentors by kqr on Saturday February 11, 2023 @07:04AM (#34751621)
Haskell has a static type system. "Strictness" in PL theory usually refers to an eager evaluation strategy.

But yes, you are correct. The comment you replied to does not make sense. Haskell is not dynamically typed at all. (Though as with any statically typed language, you can create a Grand Unified Type that stores everything and pretend it's dynamic.)

Re:We Need Programming Mentors by ekleraki on Saturday February 11, 2023 @07:18AM (#34751695)
You are correct my comment did not make sense.

What I meant was that types may be inferred but that is not the same as dynamic typing.

Re:We Need Programming Mentors by marcosdumay on Saturday February 11, 2023 @10:46AM (#34753334)
"Strictness" when applied to types usually refers to the existence of implicit type conversions.

Overall, "strictness" is a really bad word to use, because it has thousands of different meanings. But on the context of types, I don't know of any better synonym.

Re:We Need Programming Mentors by jacoblambda on Saturday February 11, 2023 @02:05PM (#34755218)
> Haskell has a static type system. "Strictness" in PL theory usually refers to an eager evaluation strategy.

Ah yep. Meant static there and fumbled my words. That's what I get for browsing HN first thing in the morning before coffee.