jonthegeek / stbl

Stabilize Function Arguments
https://jonthegeek.github.io/stbl/
Other
14 stars 0 forks source link

Implement to_int() #2

Closed jonthegeek closed 1 year ago

jonthegeek commented 1 year ago

This is probably one of the more complicated cases to coerce to. Here I'll lay out how I think each of the vector types should be treated.

Make sure it's still fast. For the case without coercion, it should have virtually no overhead. With coercion can be slower but not a lot slower.