Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TylerE
on Dec 17, 2020
|
parent
|
context
|
favorite
| on:
A case study on strict null checks
Isn't this code rather leaky?
What if, for instance, the file DOES exist but the current user doesn't have read permission.
ketralnis
on Dec 17, 2020
[–]
The example code isn't a treatise on proper file handling, it's a minimal example of Option
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What if, for instance, the file DOES exist but the current user doesn't have read permission.