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 | 6734 reads
|
Browse archives
Active forum topics |
Recent comments
16 weeks 1 day ago
16 weeks 2 days ago
16 weeks 2 days ago
38 weeks 3 days ago
42 weeks 5 days ago
44 weeks 2 days ago
44 weeks 2 days ago
47 weeks 5 hours ago
51 weeks 4 days ago
51 weeks 4 days ago