Optimizing your use statements

One of the very few things Java has done correctly is the degree of granularity in the way it imports libraries; it pushes the developer to only include the parts of the library actually required by the application. This is down to the history of Java, but it's something that should be encouraged. Rust does something similar.

The use statement can take a number of different styles.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset