Skip to content

Navigation Menu

Sign in
Sign up

Should formula columns implicitly convert primitive arrays via unbox and/or widening? #1301

nbauernfeind started this conversation in Ideas
Discussion options

It is possible to support an implicit conversion of the following ideas:

public void foo(double[] values);
// implicit widening
emptyTable(1).update("F = foo(new float[] {})")
// implicit unboxing
emptyTable(1).update("F = foo(new Double[] {})")
// implicit unboxing and widening
emptyTable(1).update("F = foo(new Float[] {})")

The biggest concern is the need to allocate a destination array and convert on every invocation. The biggest benefit is the ease of use and the consistency with the other implicit conversions that DH performs on behalf of the user.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /