https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
e

Edgars

12/09/2019, 2:05 PM
I'm thinking about making
IntCode<T : Number>
. Need to refactor it for Day 7 anyway.
b

Burkhard

12/09/2019, 2:56 PM
how would that work with
+
and
*
. I thought they weren’t defined on
Number
or are you just going to add a big when expression with the most common variations
Int
,
Long
,
BigInt
?
e

Edgars

12/09/2019, 2:57 PM
Oh, I haven't gotten that far, that was just an idea. 😄
k

karelpeeters

12/09/2019, 10:20 PM
Yeah no,
Number
is just a pathetic abstract class that's really not useful for anything at all.
👍 1
2 Views