Binette@lemmy.ml to Learn Programming@programming.devEnglish · 17 days 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-square16fedilinkarrow-up137file-text
arrow-up137message-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 · 17 days agomessage-square16fedilinkfile-text
I would use both.