Impossible?
array foreach f
array map f
Or if you miss java enough: var i = 0
while (i < array.length) { f(array(i)) ; i += 1 }
I can't even imagine what it is you think is impossible.Impossible?
array foreach f
array map f
Or if you miss java enough: var i = 0
while (i < array.length) { f(array(i)) ; i += 1 }
I can't even imagine what it is you think is impossible.One example where something was impossible in Scala is that to implement a Parcelable for Android. This requires the creation of a static field, which Scala doesn't allow. Now, I won't argue that an API that requires such a construct is good, but it might be necessary for your application. I believe Scala now contains special code in the compiler just to support this peculiarity in the Android API.
I would actually find the details of where Scala performance is poor to be very interesting. Most significant IMO would be whether they are real problems or people picking improper implementations. For example I'd like to be able to answer the following, would using a view have given them the performance they needed without producing ugly code?