News for hackers. Stuff that matters.
Re:Types Are The Truth by Dewie on Wednesday June 11, 2014 @04:10AM (#7876917)
An alternative to static types are runtime assertions - check that the two arguments to an add function are integers before performing the operation. Then the type system (strong, dynamic typing) is definitely part of the code of the program, if that's what you want.

> Well, machine instructions are what make the computer do observable things.

The typechecker is a program, and if the typechecker fails, you will see output.

Re:Types Are The Truth by mtdewcmu on Wednesday June 11, 2014 @01:33PM (#7879240)
You definitely see lots of things like (string? x) even in Lisp. It shows that some types are unavoidable. (Though frequently the type information is just used as additional information.)

Typecheckers definitely do things. But are those things interesting?

Re:Types Are The Truth by Dewie on Saturday June 14, 2014 @09:50AM (#7892751)
> Typecheckers definitely do things. But are those things interesting?

That seems like asking "seat belts definitely do things, but are those things interesting?"

Re:Types Are The Truth by mtdewcmu on Thursday June 19, 2014 @03:14AM (#7914823)
If you could show that seat belts save lives, which I think you can, then that's kind of interesting. In any case, I meant the question to be rhetorical.