In C#, did you know the dynamic keyword could be used as a generic constraint?

It probably shouldn't be, BUT IT CAN! #gamedev #IHad99Problems #NowIHaveMore

@pyredrid I'd say that's mildly horrifying, but then again I did just spend several hours converting runtime polymorphism to compiletime polymorphism just because I wanted an `on_hit` on one subclass and not the other.

@Freyaday The worst part is this is a cache for other generics being loaded from json files. the keys are filepaths and the dynamic is for instances of Asset<T>

:D

Sign in to participate in the conversation
HELLSITE™

Microblogging for humans—and cute robot girls.