Feedback
I'm new to publishing open source code. If you've got feedback and/or are interested in the library, I'll be very glad to hear from you! Email me at francois at fsavard . com. Specific help might be with:
- general feedback: do you find this useful? how may it be improved?
- new test cases, particularly for type checkers
- new type checkers
- running the test suite in other browsers.
- To run the tests, simply load the page "tests/tests.html" in a given browser.
- To date I've tested, with the current test suite:
- Firefox 2 under Windows XP
- Firefox 3 under Linux
- MSIE 6 under Windows XP
- Opera 9.52 under Windows XP
- Safari 3 under Windows XP
- code review
- other ideas and features, keeping in mind the goal of simplicity
- Things I have in mind:
- Add more basic type checkers: object, has same prototype/constructor as ..., has a specific constructor, perhaps type checked maps. See others generally useful?
- Adding a set of basic tests (string, function...) that don't need additional function calls, but are instead in a switch-case, for performance. From a clean-code perspective, I like this less than strictly relying on TypeCheckers, though.
- Add a bypass for production code, so if you're confident enough (from doing unit tests etc.) you don't have to add the type checking overhead to the real code.
- Allow everything to be added directly to the global namespace for terseness of signatures, but that would clearly pollute that namespace...