molszanski / iti

~1kB Dependency Injection Library for Typescript and React with a unique support of async flow
https://itijs.org
MIT License
129 stars 6 forks source link

add destructuring support #24

Closed molszanski closed 1 year ago

molszanski commented 1 year ago
moltar commented 1 year ago
  1. I think null is a bad value. It's a valid value. Shouldn't be used in place of a container value. How about undefined?

  2. Don't think this solves the dispose problem. Dispose is more than just delete. It's disposing of a resource completely. E.g. disconnecting from a database or flushing logs.

molszanski commented 1 year ago
  1. My previous implementation made it impossible to store null. Doubt anyone would need it but felt wrong. What do you think?

  2. Oh yes, this a work in progress. I disposing hasn't started yet.