Since I'm not a native English speaker I better make sure not to create an DSL that would sound awkward for others. A DI container emerged out of a project and I'm isolating it as a seperate project. I see other DI/IOC containers using syntax like bind(interface).to(class)
. I would use the following (pseudo-code):
given(interface).thenUse(class)
given(class).constructWith(id=5)
given(class).inject(observer).inMethod(addObserver)
Do these make sense or does it sound like a construction from someone who doesn't grasp the some finer semantics of these words?