you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 3 years ago (1 child)

best solution to all rust problems /s

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 3 years ago (1 child)

    This might be the wrong place for this question, but I have heard criticism that real rust programs contain lots of unsafe code. Is this true?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 12 points 3 years ago (1 child)

    Define what makes a rust program "real" lol.

    Any kind of library that does a lot of low-level stuff (kernel syscalls, custom binary reprs, ffi) will have to use unsafe. But most applications built using these libraries rarely need to use unsafe at all, because the libraries act as safe wrappers to make sure the app developer isn't accidentally violating invariants allowed by the "unsafe" keyword.

  • source
  • parent
  • hideshow 2 child comments