Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The handler function isn't actually unnecessary, or at least, it isn't superfluous: by default, the signature would include 'a on self as well, and that's probably not what you actually want.

To clarify, I meant the 'a in `Box<dyn Handler + 'a>` in the definition of `process_handler` is unnecessary. I'm not saying that the <'a> parameter in the definition of Handler::handle is unnecessary, which seems to be what you think I said, unless I misunderstood.





Ah yes, I misunderstood you in exactly that way, my apologies.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: