Dirkjan Ochtman

Results 2159 comments of Dirkjan Ochtman

What do you propose it should do instead?

Ah, your initial description had me confused since it seemed to imply to me that it was already throwing a compilation error but you thought it should not. I think...

Hmm, I'm not a fan. If `Borrow` in particular provides a useful workaround for a lot of people we could implicitly import it in generated rendering template functions (but I'm...

Not supporting this has been a design goal from the start. If I remember correctly, your example should already work without `&`.

Hmm, okay. Perhaps we should eagerly take a reference in variable declarations (and then not do so when referencing variables later).

askama_rocket 0.11.0-rc.1 is mismatched with askama_shared 0.10.x. I'll try to publish newer releases for the core crates after #528 lands, and then hopefully you can use askama_rocket 0.11.0-rc.2.

It would be nice if we can do this without explicit syntax. Not sure if that can work...

Hmm, I think that wouldn't be a big deal. Remember, you're in the context of a `&self` method, so none of the mutability here is externally observable anyway.

No, but you can macros for this instead.

For macros you'd have to pass all the required context in explicitly, you wouldn't have access to the ambient context inside the macro as far as I remember. There's a...