Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
surajrmal
on Sept 11, 2024
|
parent
|
context
|
favorite
| on:
Don't defer Close() on writable files (2017)
A method which takes foo and turns it into another type is slightly better. You can then unconditionally panic in the drop impl.
bqmjjx0kac
on Sept 11, 2024
[–]
Neat, I didn't realize that would skip drop()!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: