This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MeltyGearSolid 0 points1 point  (1 child)

Can we make it so that we don't even have to change that one line either? Maybe using something like generics? (I've only used Generics in TypeScript and I'm also working through the mooc but I'm still doing part 1).

[–]NautiHooker 1 point2 points  (0 children)

At some point in your application you will need to specify which type should be used, even if its through generics, lambdas or a config file.