News for hackers. Stuff that matters.
Re:Ruby vs. Python comes down to the for loop (2021) by adolph on Monday April 22, 2024 @09:12AM (#40114025)
> I guess {} is better than BEGIN END, but maybe not in terms of readability.

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...

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.