younata / Ra

Dependency Injector for swift
MIT License
8 stars 2 forks source link

Ability to use any kind of Hashable as an injector key. #3

Closed younata closed 9 years ago

younata commented 9 years ago

Swift Dictionaries require the key of a dictionary to conform to the Hashable protocol.

It would be nice to be able to use anything that conforms to Hashable (in addition to classes) as a bindable key.

younata commented 9 years ago

This is supported in this commit thanks to Swift's MirrorType. Might even be backportable to swift 1.2 (but I won't).