Closed johnlcox closed 9 years ago
Based on the benchmarks in 3f27ea4c76709574f7e68caaf6c82d7ab514d2e9 and the fact that each primitive type will require about 6 classes it doesn't seem worth it to add primitive type patterns at this time.
Reopening and using this to track adding boxed primitive patterns. If actual primitive patterns are needed at a later date a separate issue can be logged for that.
Is there any value in creating actual primitive patterns similar to what Java 8 did with classes like
IntFunction
? I could createIntPattern
andIntConsumablePattern
for each primitive type. It's probably best to create some benchmarks to compare how bad the autoboxing will be using justPattern
andConsumablePattern
.