News for hackers. Stuff that matters.
Re:Two Years with Rust by AaronFriel on Monday March 23, 2020 @01:13PM (#22666137)
Repeating the name allows some optimizations but you'd be unlikely to use or benefit from them unless you were writing functions that returns functions and you could benefit from inlining some patterns and not others.

I think I've seen the pattern in some web framework code, byte libraries, etc.

Although semantically equivalent, the optimizer treats the following differently:

    f a = \b -> ...
    f a b = ...

There are no comments on this comment yet.