Open lydia-duncan opened 3 years ago
To me, int->bigint
and bigint->int
coercions seem like a model case for user-defined coercions, to provide similar benefits to int(8)->int(64)
coercions and the like but for a type defined outside of the language. Many operations have (and benefit from) explicit bigint op int
combinations, but for those that don't, it seems artificial to require additional overloads that just do explicit conversions within the routine.
Over on https://github.com/chapel-lang/chapel/issues/17689#issuecomment-840103346 Brad said: