| ▲ | lolinder 2 hours ago | ||||||||||||||||
If the end state were unsafe Rust, you'd be right, but that's explicitly not the intended end state. Unsafe Rust was the reachable first step. Now they have a Rust version and can iteratively remove `unsafe`, which they couldn't do before when it was in Zig. | |||||||||||||||||
| ▲ | selfmodruntime an hour ago | parent [-] | ||||||||||||||||
It's the wrong abstraction though and I am kind of not surprised the Bun maintainers went way. The correct abstraction would be to translate into Rust while using `clone` and `copy` liberally and then iteratively converting to a borrowing model. Nowhere at all was an introduction of the `unsafe` keyword needed. | |||||||||||||||||
| |||||||||||||||||