Go's defer works like RAII and does not introduce indentations.
f := createFile("/tmp/defer.txt")
defer closeFile(f)
writeFile(f) f := createFile("/tmp/defer.txt")
defer closeFile(f)
writeFile(f)https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
I just recently updated a few small services to C# 12 and there's a bunch of little niceties like this I'm finding (spread operator for instance).