Global Feed Post Login
Replying to Avatar sedited

Writing RAII style C++ is fine and good, but having no common pattern to effectively handle errors in constructors sucks. You can see it all over Bitcoin Core's codebase. There are like five different ways to handle these errors and none of them are really ergonomic.

Avatar
sedited 1y ago

fn new() -> Result

Another common rust win.

Reply to this note

Please Login to reply.

Discussion

Avatar
sedited 1y ago

Went with what the minisketch wrapper does for now.

Thread collapsed