Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jan :rust: :ferris:
@janriemer@floss.social  路  activity timestamp 2 days ago

This is why #Rust is not only about memory safety/performance, but about correctness 馃憞

Did you know that in #JavaScript when `fetch`ing the same Request/Response twice will error (when containing a body)!?

It is because bodies are Streams, which can only be read once! You can clone the Request/Response/Body, but this comes with its own caveats (in the worst case the clone will buffer the body fully in memory!).

#RustLang solves this by borrow checking and good API design...

1/2

#WebDev #JS

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login