Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

plus static type checking


sort by: page size:

Wait, the type checking isn't static?

But it also has a statically checked type system.

Some people really like static type checking.

Actual static typing and forced type checking.

Oof, that’s quite a take. Static type checkers by definition don’t change the language’s functionality; they merely check the types.

But we also covered a lot more than a static type check could cover at compile time, right?

How does that work? I thought static typing was only checked when compiling.

Yeah, I think this is something where static typechecking helps a lot.

What's status of static typing checking ?

Right, but I'm curious to know among statically typed languages, which ones have more checks than others.

Type checking as an add-on is okay but it is not the same thing as a statically typed language.

Statically typed

In a statically typed language you have to worry about many other things tough =)

With compile time checking that is already there + Dialyzer, you basically have the whole 'code correctness' side of static typing? Right?

static type checking is like compile-time asserts -- it doesn't add to solution complexity, it just verifies assumptions about inherent existing complexity.

Static types

Yeah but typing related bugs which is what static type checkers catch only account for 3% of bugs.

You are always going to get more bang for buck by simply writing more unit tests.

Static typing is done primarily for performance and that requires a statically typed language. Hacking it into a scripting language is plain looking for trouble.


Static typing on its own is very bad at finding errors.

Static typing is something you use for performance reasons primarily.

If you want to catch errors with static typing you need Haskell or Rust levels of support for it. C# / Java / C++ don't make the grade.


Seems like youve just abstracted things like static typing into a extension of the language thats checked at a less optimal time. At this point arent you better off just using a language that incorporates this functionality and compiles it? Sounds like youve just implemented static typing but in a really akward and unecessary way
next

Legal | privacy