User loginNavigation |
Best value for overloading?There exist various approaches to overloading, including: * type classes of various kinds What seems to offer the best value for investment effort, expressiveness, and type safety? For instance, multimethods are pretty flexible and uniformally allow a form of type-based and case-based overloading, but it seems quite difficult to capture accurate types with all the expressiveness we expect of ML functions, eg. first-class functions require intersection types and subtyping. Type classes and traits seem more or less equivalent, but have problems with overlapping and named instances, a problem shared by [1] I believe. Implicits seem promising, and properly handle named and overlapping instances. [1] A Second Look at Overloading By naasking at 2016-11-05 14:26 | LtU Forum | previous forum topic | next forum topic | other blogs | 6442 reads
|
Browse archives
Active forum topics |
Recent comments
26 weeks 5 days ago
26 weeks 5 days ago
26 weeks 5 days ago
49 weeks 11 min ago
1 year 1 week ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago