• [^] # Re: Mauvaise connaissance du c++

    Posté par . En réponse au journal Gestion de l'erreur - C++ - std::optional. Évalué à 0.

    Je suis aller voir si je ratais quelque chose et ils semble que non, c'est assez simple.

    Ah mais l'intention derrière les Checked Exceptions est noble. Mais en pratique, c'est du caca.

    If we throw an IOException in UserRepository.getContent(Path) and want to handle them in ContextMenu.menuClicked(), we have to change all method signatures up to this point. What happens, if we later want to add a new exception, change the exception or remove them completely? Yes, we have to change all signatures.

    Supeeeer.

    "Quand certains râlent contre systemd, d'autres s'attaquent aux vrais problèmes." (merci Sinma !)