▲ | riffraff 8 days ago | ||||||||||||||||
Unsurprisingly, `END {}` is also inherited from perl, tho I think it originally comes from awk. | |||||||||||||||||
▲ | mdaniel 8 days ago | parent [-] | ||||||||||||||||
Similarly unsurprisingly, with its BEGIN friend https://docs.ruby-lang.org/en/3.3/syntax/miscellaneous_rdoc.... In the spirit of "what's old is new again," PowerShell also has the same idea, and is done per Function with "begin", "process", "end", and "clean" stanzas that allow setup, teardown, for-each-item, and "finally" behavior: https://learn.microsoft.com/en-us/powershell/module/microsof... | |||||||||||||||||
|