Do I need to close pipes in Scheme or GC will do it for me? 🤔
https://www.gnu.org/software/guile/manual/html_node/Ports-and-File-Descriptors.html#index-pipe-2
Do I need to close pipes in Scheme or GC will do it for me? 🤔 https://www.gnu.org/software/guile/manual/html_node/Ports-and-File-Descriptors.html#index-pipe-2 6 comments
@yourWife I'm not sure if call-with-input-file works with (pipe). Moreover, I'm almost sure it doesn't :) |
@abcdw you should close ports just to ensure they don't linger. some schemes have a library function that will wrap code and close the port automatically, so use it if available.