Closed glen-84 closed 1 year ago
Currently there's only long; the idea is/was that maybe sometime in the future another type is added. I don't see that happening but you never know 😉
It would be a bit neater to just inject IIdGenerator
. 🙂
Something something hindsight 20/20.
I can't change this without breaking everyone's code and, quite honestly, I don't see the problem.
I can't change this without breaking everyone's code and, quite honestly, I don't see the problem.
I'm not sure what the breaking change would be, IdGenerator
could implement both IIdGenerator
and IIdGenerator<long>
, with the latter being deprecated.
Anyway, it's not critical, just a suggestion.
I'm not sure what the breaking change would be
Ah, I see. I meant that if I would replace the interface things would break. But, yes, I could add an interface. I just think it clutters the interfaces.
I'm curious why the
IIdGenerator
interface is generic – aren't the values alwayslong
?Maybe there could be a non-generic interface using
long
internally?