News for hackers. Stuff that matters.
Re:Clojure Don’ts: Lazy Effects (2015) by Tarean on Saturday March 03, 2018 @08:05PM (#16512704)
In praxis a streaming library like pipes, streaming or conduit handles the file handles for you so application code is safe. Safe-ish in the case of streaming but that is a conscious tradeoff between convenience and safety.

You could argue that libraries shouldn't contain unsafe code either and go with a substructural type system, use indexed monads, fake regions or something similar. Whether the extra complexity is worth it is arguable, though.

There are no comments on this comment yet.