• 0 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: July 28th, 2024

help-circle
  • From the second link (which seems to be the list from the EU Parliament):

    Amendment 186 François-Xavier Bellamy, Javier Zarzalejos, Regina Doherty, Laurent Castillo, Axel Voss, Gabriel Mato, Romana Tomc, Massimiliano Salini, Antonio López-Istúriz White, Nicolás Pascual de la Parte, Esteban González Pons, Fulvio Martusciello, Oliver Schenk, Matej Tonin, Loucas Fourlas, Sander Smit, Željana Zovko, Fredis Beleris, Angelika Niebler, Nadine Morano, Isabelle Le Callennec, Christophe Gomart, Ana Miguel Pedro, Raúl de la Hoz Quintano, Salvatore De Meo, Davor Ivo Stier, Isabel Benjumea Benjumea, Ilia Lazarov, Karlo Ressler, Miriam Lexmann, Alma Ezcurra Almansa, Letizia Moratti, Borja Giménez Larraz, Elena Nevado del Campo, Céline Imart, Pablo Arias Echeverría, Jessika Van Leeuwen, Rosa Estaràs Ferragut, Zoltán Tarr, Dolors Montserrat, Elissavet Vozemberg-Vrionidi, Daniel Caspary



  • Languages like Java or C++ have Exceptions, which are errors, that are not explicitly mentioned in the function signature. Meaning, you might need to handle an exception you didn’t even know existed. And if you don’t, your program will just crash when these exceptions occur.

    In Rust all errors are explicitly mentioned and part of the return type. Because of this Rust has a lot of ways to quickly handle an error. One of those ways is “Trust me, bro” (or .unwrap()), which converts the combined error/success return type into just a success type, causing the program to crash if it actually was an error, restoring the more unsafe behavior of other languages.