User loginNavigation |
Lanugages with built-in rules/tests?So if you can define type classes in Haskell, what if you could then attach requirements to them in the way of tests? You could then enforce whatever e.g. algebraic rules you want on equality or partial ordering. Have it really become part of the original type class definition, and somehow enforce that things pass that test before they can be marked as belonging to that class. A key think is to have it be part of the base language, not some optional addition. (Sure, there would be usability issues to iron out :-) By raould at 2008-02-07 23:55 | LtU Forum | previous forum topic | next forum topic | other blogs | 6162 reads
|
Browse archives
Active forum topics |
Recent comments
1 week 6 days ago
42 weeks 23 hours ago
42 weeks 1 day ago
42 weeks 1 day ago
1 year 12 weeks ago
1 year 16 weeks ago
1 year 18 weeks ago
1 year 18 weeks ago
1 year 20 weeks ago
1 year 25 weeks ago