GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Dr. Dek 👨‍🚀🐧🚀 ) (portaloffreedom@social.linux.pizza)'s status on Thursday, 20-Nov-2025 21:01:43 JSTDr. Dek 👨‍🚀🐧🚀 )Dr. Dek 👨‍🚀🐧🚀 )

    The unwrap thing is the equivalent of ignoring the return value of C functions that can fail.
    I still prefer the Rust syntax for this, at least ignoring the error is explicit text in code.
    In C ignoring a possible error is silent. To spot the error one would need to know the function signature and documentation in advance.

    Side note: exceptions are even worse in my humble opinion. They have the advantage of giving more information about an error than just a null or a negative number. But it's even less obvious which function might return an exception and what's the best place to handle them.
    Functions with multiple return values are the way to go, even better if the return value is a tagged enum with information on both the correct operation or the error.

    In conversationabout 3 months ago from social.linux.pizzapermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.