|
|
|
|
|
by light_hue_1
1482 days ago
|
|
Plenty of languages don't have RAII have SBRM. Scope based resource management predates the idea of constructors by decades. It's common in Lisp and Scheme. Haskel doesn't have RAII, but scope-based resource management is critical. ```
(call-with-output-file some-file
(lambda (out)
(write 'hello out)))
``` |
|