News for hackers. Stuff that matters.
Re:Letter to a Young Haskell Enthusiast by dragonwriter on Friday August 01, 2014 @05:54PM (#8123057)
> That is a reductionistic view

Maybe, so what?

> like saying that everything is ultimately ones and zeros.

Well, except that saying everything is ultimately ones and zeros isn't (at least in this context) a useful starting point for explaining anything.

> The storage place in a dynamic language, such as a variable, or array element or whatever, is not understood to have a type in that language.

I'm not talking about storage places, I'm talking about the logical design -- a function (regardless of the features of the language) is designed to operate on some set of values and return a result from some set of values. These sets can ar the types I'm interested in -- whether they are implemented as (static) types in a language, or as tags / dynamic types, or whatever, or even if the language had no concepts of types at all (and, in most real languages, and can be true true even withHaskell, as in the head function on lists).

And to the extent that "heterogenous" collections are useful, they are useful specifically because they are not really heterogenous, even if the shared logical type to which the elements must belong is not coherently defined as a discrete "type" within the type system of the language.

There are no comments on this comment yet.