Article: Using Manifests

Scala 2.8 formalized the ability to encode type information into implicit parameters. Manifests were added specifically to handle arrays and generalized to be useful in other situations where the type needs to be available at runtime. In this article from chapter 7 of Scala in Depth, author Joshua Suereth shows how Manifests are useful in Scala to create abstract methods whose implementations diverge based on the types they work on, but the resulting outputs do not.

Please enter the following information below to receive this content.
Email:
Name:

Where does my email address go?

Your address will get added to our general New Product Announcement list. We send email to this list about 4 times a month to announce new titles, present updates to our Early Access title list, and offer you special promotions and freebies. Our aim is that you will be able to rely upon us to provide information you can use to enhance your professional skills.

But what if you do not want to receive email from Manning? No worries! You will always find an opt-out link on our emails. We really do not want to bother you with any information you do not feel like receiving.

Enjoy the free content, and feel free to discuss or offer feedback to the authors in the Author Online!