Binette@lemmy.ml to Learn Programming@programming.devEnglish · 3 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-square16fedilinkarrow-up138file-text
arrow-up138message-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 · 3 months agomessage-square16fedilinkfile-text
minus-squareToes♀@ani.sociallinkfedilinkarrow-up4·3 months agoIf you’re already using an existing engine this is already baked in. But a new engine I would suggest confirming that the file is there and that there is no handles holding it.
If you’re already using an existing engine this is already baked in.
But a new engine I would suggest confirming that the file is there and that there is no handles holding it.