I'mit is not clear whythat why he behaved like this. that

thread, Luke Gorrie wrote:
If someone could next show what makes type systems so interesting in terms that I'll understand then I'll be well on my way into the modern functional programming world.. :-)
When you write code, even in the most dynamic language, you always know something about the types of the values you're operating on.
You couldn't write useful code otherwise - if you doubt that, try coming up with some examples of operations you can perform on a value without knowing something about the type of that value.
Type systems provide a way to encode, manipulate, communicate and check this type knowledge.
In an earlier thread, you mentioned that you write the types of functions in the comments.
That's an informal type system!
Why do you do use a type system?
Because type systems are useful, important, and as a result, interesting.
The question didn't mention the word "static", but I'll raise it anyway.
The type knowledge I'm talking about is necessarily mostly static - you know it when you're writing the program, and it's knowable when you're reading the program.
Since we can't write useful code without it, it's also very important knowledge.
That raises the question, if this important static knowledge is present in our programs, shouldn't we make it explicit somehow?
Further, if possible, since we exploit and depend on this knowledge on almost every line of code we write, shouldn't we check it for validity as early as we can, even while we're writing the programs (e.g. within an IDE), perhaps before it's possible to run unit tests on them?
Given this ability, why wouldn't you take advantage of it?
Of course, the answer to that is that encoding a program so that its every term can have its type statically checked, introduces some constraints.
But as I've argued before, the alternative of avoiding all static encoding of type information (other than in comments) is mostly a reflection of weaknesses in the state of the art.
| 100463 reads
Comment viewing options
Flat list - collapsed
Flat list - expanded
Threaded list - collapsed
Threaded list - expanded
Date - newest first
Date - oldest first
10 comments per page 30 comments per page 50 comments per page 70 comments per page 90 comments per page 150 comments per page 200 comments per page
Select your preferred way to display the comments and click "Save settings" to activate your changes.
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
to post comments
Active forum topics
New forum topics}

我要回帖

更多关于 why i like computer 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信