Type safety is a good feature in a programming language

By 3 Martin Atkins on January 31, 2007

Embed Claim Make a related claim

Discussion (8)

http://dannohung.idproxy.net/

1 DannoHung who agreed, says

Type safety yes, necessarily static typing? Hella naw.

Make a related claim about 1 year ago (link)
http://geeksam.videntity.org/

3 Sam Livingston-Gray who disagreed, says

That's what unit tests are for...

Make a related claim about 1 year ago (link)
http://matt-good.net/

1 Matt Good who agreed, says

I agree with DannoHung here. Type safety and static typing are not the same thing.

Make a related claim about 1 year ago (link)
http://www.tapsellferrier.co.uk/nicferrier/

8 nic who hasn't voted, says

Unit tests don't provide any kind of safety. They're just a confidence thing.

Static typing is pretty much the only way to get type safety AFAIK... it's just that most languages we actually *use* don't implement static typing very creatively. Haskell does a lot of inference for example, but Java does not.

But this is because of the functional thing right? if your language is functional it is possible to infer things because you can see what is going to be returned. If it's not functional then you cannot logically prove the result of any expression and therefore need dumbass label based static typing.

So that's the problem... either we find a way to make FP more usable or we carry on down the dynamic route.

Make a related claim about 1 year ago (link)
http://kybernetikos.com/openid/

4 kybernetikos who hasn't voted, says

I like "nice" for this.

Make a related claim about 1 year ago (link)
http://www.tapsellferrier.co.uk/nicferrier/

8 nic who hasn't voted, says

I've not tried nice. Can you make some claims about it so we can learn it?

Make a related claim about 1 year ago (link)
http://www.tapsellferrier.co.uk/nicferrier/

8 nic who hasn't voted, says

Groan! It's java.

Make a related claim about 1 year ago (link)

Claims inspired by this comment

'nice' (the programming language) is not Java
http://jeanhuguesrobert.myopenid.com/

1 Jean Hugues Robert who disagreed, says

Hints directed type inference is what we need.

Sometimes the "hint" can be "must be of type xxxx".

Make a related claim 7 months ago (link)
Sign in in to leave a comment.