Re:MiniJinja: Learnings from Building a Template Engine in Rust
by kbolino on Tuesday August 27, 2024 @02:49PM
(#41371292)
Regarding the borrow checker, what you say is not correct. The borrow checker's rules are stricter than absolutely necessary. It is designed to reject all invalid programs, but it also rejects some valid programs.
[ Parent
| on HN ]
Re:MiniJinja: Learnings from Building a Template Engine in Rust
by oneshtein on Wednesday August 28, 2024 @01:09AM
(#41376146)
Yes, rust compiler team improves borrow checker from time, to allow more valid programs to pass the checker. However, in practice, it's always possible to use unsafe code to do the job, and then build a safe façade for it.
In this particular case, borrow checker does it job as designed. So, why to fight it?