In the pre-jb/functions era, where higher-order functions where suboptimal (because function calls would not specialize on them), there was a trick using the feature you noticed to overcome this limitation, i.e. make it fast. Cf the discussion at https://groups.google.com/d/topic/julia-users/qscRyNqRrB4/Idiscussion. Note that the fast-anonymous package by Tim Holy was using this trick.
- [julia-users] inner constructor returning an object of a d... Tamas Papp
- Re: [julia-users] inner constructor returning an obje... Rafael Fourquet