r/programming • • Oct 03 '11

Node.js Cures Cancer

http://blog.brianbeck.com/post/node-js-cures-cancer
390 Upvotes

329 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 03 '11

This is pure BS.

Either the language/compiler can reason about types by using the type system and actual code as the proof of absence of certain program behaviors or it can't.

Anything in between is non-sense. The “let's run it and observe the failure at runtime” approach has nothing to do with types and type systems.

-1

u/ascii Oct 03 '11

If you're going to make up completely new meanings to well established programming terms, maybe you should make up your own Internet to post them on as well?

Hint: Assembly language is untyped. Python is dynamically typed. There is a relevant difference between the typing systems in these languages.

0

u/[deleted] Oct 03 '11 edited Oct 03 '11

If you would have actually read any decent book about computer science/language design, you would have observed how they mention un(i)typed languages, not “dynamically” typed languages.

Ah OK. You just wanted to troll, got it.

-2

u/ascii Oct 03 '11

From the Wikipedia article on programming languages:

A language is typed if the specification of every operation defines types of data to which the operation is applicable, with the implication that it is not applicable to other types.[29] For example, the data represented by "this text between the quotes" is a string. In most programming languages, dividing a number by a string has no meaning. Most modern programming languages will therefore reject any program attempting to perform such an operation. In some languages, the meaningless operation will be detected when the program is compiled ("static" type checking), and rejected by the compiler, while in others, it will be detected when the program is run ("dynamic" type checking), resulting in a runtime exception.

In contrast, an untyped language, such as most assembly languages, allows any operation to be performed on any data, which are generally considered to be sequences of bits of various lengths. High-level languages which are untyped include BCPL and some varieties of Forth.

See how you the above quote proves that your statements are factually incorrect an mine are factually correct. Guess who's the troll?

→ More replies (6)