Details
Assignee
UnassignedUnassignedReporter
Tassilo HornTassilo HornLabels
Priority
MinorAffects versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Tassilo Horn
Tassilo HornLabels
Priority
Affects versions
Created July 17, 2013 at 1:04 PM
Updated January 18, 2016 at 9:48 PM
You can add type hints to the argument vector(s) of `defn` to declare the return type of a function like so (with warn-on-reflection being true):
But sadly, the same doesn't work with `fn` and `letfn`:
I don't see why this feature is available to `defn` but not to `fn` and `letfn`. I even consider it a kind of defect, because anything else including re/ost are also supported by the latter two, so the support for hinting the return type should be there simply because of analogy.