3 ms·
I implemented try() in Go five years ago with an AST preprocessor and used it in real projects, it was pretty nice: https://github.com/lunixbochs/og https://git
by lunixbochs 7y ago
I implemented try() in Go five years ago with an AST preprocessor and used it in real projects, it was pretty nice: https://github.com/lunixbochs/og https://github.com/lunixbochs/og
Here are some examples of me using it in error-check-heavy functions: https://github.com/lunixbochs/poxd/blob/master/tls.go#L13 https://github.com/lunixbochs/poxd/blob/master/tls.go#L13
- X6S1x6Okd1st 7y agoI wrote something similar but of lower quality about 5 years ago as well