Binette@lemmy.ml to Learn Programming@programming.devEnglish · 2 months agoIs it better to check if a file exists before trying to load it, or to try to load it, and catch the error and move on?message-squaremessage-square15fedilinkarrow-up136arrow-down10file-text
arrow-up136arrow-down1message-squareIs it better to check if a file exists before trying to load it, or to try to load it, and catch the error and move on?Binette@lemmy.ml to Learn Programming@programming.devEnglish · 2 months agomessage-square15fedilinkfile-text
minus-squarenetizen@programming.devlinkfedilinkEnglisharrow-up4arrow-down1·2 months agoFile existing and we’re able to read it are two quite different conditions
File existing and we’re able to read it are two quite different conditions