3 ms·
> I guess {} is better than BEGIN END, but maybe not in terms of readability. AFAIK, {} lacks initialization and finalization blocks, like a sql statement with
by adolph 3y ago
> 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-BEGIN_002fEND.html https://www.gnu.org/software/gawk/manual/html_node/Using-BEG...
- kaba0 3y agoI 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.