User loginNavigation |
Subtyping + overloadingIt seems to me that Haskell imitates subtyping for numeric types by implicitly passing number literals to the coercion functions fromInteger or fromRational. Is it possible to give subtyping and overloading a more elegant/complete way to coexist? If, for example, the literal "1" has type int, what needs to be added to an ML-like type system so that "1 + 0.3" will be typed as a float? Thanks, By Alex Rubinsteyn at 2008-11-09 03:22 | LtU Forum | previous forum topic | next forum topic | other blogs | 13625 reads
|
Browse archivesActive forum topics |
Recent comments
6 days 8 hours ago
1 week 2 days ago
6 weeks 3 days ago
6 weeks 4 days ago
18 weeks 5 days ago
18 weeks 5 days ago
19 weeks 4 hours ago
19 weeks 4 hours ago
19 weeks 5 days ago
19 weeks 5 days ago