User loginNavigation |
Overloading by return type without typesI wonder if there are any strategies for overloading by a type of a return value in dynamically types languages. There is one example I am aware about - Perl and its "contexts". May be there are some other insights on this topic? Basically I mean run-time dispatch on the return values so that the code like so: //This function is overloaded for int32 maxValue _ = 0x7fffffff x = maxValue 0 can be translated into //Overloaded (polymorphic) constant maxValue = 0x7fffffff x = maxValue ::: Int without the need to statically type the program. By vorov2 at 2012-07-26 19:45 | LtU Forum | previous forum topic | next forum topic | other blogs | 6745 reads
|
Browse archives
Active forum topics |
Recent comments
20 weeks 1 day ago
20 weeks 1 day ago
20 weeks 1 day ago
42 weeks 2 days ago
46 weeks 4 days ago
48 weeks 1 day ago
48 weeks 1 day ago
50 weeks 6 days ago
1 year 3 weeks ago
1 year 3 weeks ago