Chayim Refael Friedman
Chayim Refael Friedman
If we want the book to be understandable to the average Hebrew speaker programmer, we should stop trying translate each and every word and just use the English terms, either...
I'd glad to see this too. What I did is creating a wrapper type but I would prefer a native solution.
> But you can't actually instantiate a `Bar src/main.rs:14:22 | 14 | let v = Foo { s: &mut s }; | ^^^^^^ borrowed value does not live long enough...
> I can't find a way to instantiate with only safe code. ```rust fn main() { let s = 123; let union = Bar { v: Foo { s: &s...
In a second thought, I'm not sure: [you can impl `Copy` for the union](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=19cc377d3d6f3b855ba608515838034d) and then you can duplicate its instances and effectively also duplicate `Foo`s. So maybe there is...
It will give you autocomplete (and maybe more) for tens of language for free 😃.
> Regarding code style, I think that in the case of "stacked" matches, a postfix match is likely to be more easily understood. In case of stacked match I almost...
> Basically, it's certainly true that there are various places where it might be a good idea to introduce a name. [#3295 (comment)](https://github.com/rust-lang/rfcs/pull/3295#issuecomment-1197539283) above mentions that in the context of...
If this was meant to be a bug report, you shall have posted it to https://github.com/rust-lang/rust instead. Aside from that, the compiler is correct as @truppelito has explained. You can...
Late to the party, and also don't know if this wasn't pointed before, but `dyn (A + B)` can be translated to machine code with more fat pointer - that...