|
|
# language qualities
|
|
|
# Language Qualities
|
|
|
|
|
|
|
|
|
These are properties or qualities of any haskell standard we would like to preserve or make sure the language has. This is not about certain extensions or libraries the language should have, but rather properties of the language as a whole.
|
|
|
These are properties or qualities of any Haskell standard we would like to preserve or make sure the language has. This is not about certain extensions or libraries the language should have, but rather properties of the language as a whole.
|
|
|
|
|
|
- import-safe - importing a new module can never silently change the behavior of a program, but it may cause a compile-time error. two programs that are identical except one has a superset of the imports of the other will either behave identically or at least one will fail to compile. (defaulting and [OverlappingInstances](overlapping-instances) break this)
|
|
|
|
... | ... | @@ -9,4 +9,12 @@ These are properties or qualities of any haskell standard we would like to prese |
|
|
|
|
|
- transformation safe. the language will not have features that cause common optimizations and transformations to become non-meaning-preserving. All lambda calculus transformations should apply. (this is broken by the [MonomorphismRestriction](monomorphism-restriction) (eta-reduction/expansion) and [ImplicitParams](implicit-params) (beta-reduction))
|
|
|
|
|
|
- sufficiently expressive and convenient for most purposes. We should try to avoid standardizing on something that will be routinely ignored.
|
|
|
|
|
|
- clearly and precisely specified (concise also desirable).
|
|
|
|
|
|
- avoids special cases where possible.
|
|
|
|
|
|
- tested by experience, though a little innovation may be necessary to meet the other objectives.
|
|
|
|
|
|
- To modify a phrase a bit "It should make easy things unneccesary and difficult things easy." |