Re: [TECH TOPIC] Rust for Linux

Geert Uytterhoeven
2021-07-08T14:18:31Z

Hi Miguel,

On Thu, Jul 8, 2021 at 4:04 PM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
> On Thu, Jul 8, 2021 at 3:43 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > So what happens if this fails?
>
> Just in case: are you asking out of concern for "Rust panics" etc.?

Exactly.

> The upgrade call does not need to panic, they can be fallible; e.g.
> the `Weak` types in the Rust standard library return an `Option`.
>
> Now, what the caller does if the upgrading fails depends on who the
> caller is, as usual.

Let's assume the caller access a member of the object regardless.
What happens?

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds