specialized-annotation Questions
3
Solved
I've searched for the use of @specialized in the source code of the standard library of Scala 2.8.1. It looks like only a handful of traits and classes use this annotation: Function0, Function1, Fu...
Stillage asked 29/3, 2011 at 19:14
4
Solved
Is it possible to specialize generic functions (or class) in Scala? For example, I want to write a generic function that writes data into a ByteBuffer:
def writeData[T](buffer: ByteBuffer, data: T...
Viburnum asked 1/11, 2012 at 8:4
1
Solved
For performance and safety I would like to implement a fixed-size vector which is both immutable and specialized (I need fast arithmetics). My first idea was to use the @specialized annotation (bec...
Roderica asked 21/4, 2012 at 9:28
1
© 2022 - 2024 — McMap. All rights reserved.