Re:Ruby vs. Python comes down to the for loop (2021)
by kaba0 on Monday April 22, 2024 @09:47AM
(#40114322)
I don’t think it’s a fundamental property of single-char open/close delimiters. Like, try-with-resources, or scala/kotlin/groovy/etc-like blocks do let you specify specific initializers xor finalizers, but one might as well create a language with ` { } with (FINALIZE)` syntax.
AFAIK, {} lacks initialization and finalization blocks, like a sql statement without transaction wrapper. Example is awk:
https://www.gnu.org/software/gawk/manual/html_node/Using-BEG...