3 ms·
With Rust you could write a function that consumes the HTTP client, not allowing you use it after, resulting in a compiler error for your example. In Go you co
by timvisee 4y ago
With Rust you could write a function that consumes the HTTP client, not allowing you use it after, resulting in a compiler error for your example.
In Go you could write a function taking the HTTP client reference and setting it to null. This would at least produce a runtime error if it ever comes across the path rather than doing something else that is unexpected.