Comment

Comment by minighost

A function that both opens a file and does something with its contents should be refactored. It’s painful to find code like this and happen to have a string or pointer to some buffer that already contains the data that needs to be converted but the conversion function is buried inside a function that tries to open a file. Go’s io.Reader is so elegant at this.
parent minighost 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton