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 | 6374 reads
|
Browse archives
Active forum topics |
Recent comments
18 hours 16 min ago
18 hours 31 min ago
5 days 19 hours ago
5 days 19 hours ago
5 days 19 hours ago
3 weeks 6 days ago
4 weeks 4 days ago
4 weeks 5 days ago
4 weeks 6 days ago
4 weeks 6 days ago