User loginNavigation |
Gradual InstantiationIs anyone familiar with a language that allows for "gradual instantiation". What I mean by this, is that the initial algorithm can be stated using very vague types (but not no type) that are gradually narrowed until they reach machine language level. For example, Number -> Rational -> Float -> IEEE_754. or CustomerData -> ShippingCustomer -> AmazonCustomer -> {name, address, [items]} -> { String, {String,String,String, Number}, [String] } ... and so on. A language that supports this would need a monotonically reducing type system with some way of checking types at each level and detecting conflicts. For example: Number = Number + Number is fine, but Rational = Number + Number, requires that the RHS needs to be Rational as well (but no resolution specification, yet). By David Minor at 2014-07-02 08:55 | LtU Forum | previous forum topic | next forum topic | other blogs | 3613 reads
|
Browse archivesActive forum topics |
Recent comments
1 week 2 days ago
1 week 5 days ago
7 weeks 29 min ago
7 weeks 19 hours ago
19 weeks 1 day ago
19 weeks 2 days ago
19 weeks 3 days ago
19 weeks 3 days ago
20 weeks 1 day ago
20 weeks 1 day ago