[Python-3000] Generic function PEP won't make it in time (original) (raw)
Josiah Carlson jcarlson at uci.edu
Wed Apr 25 21:22:07 CEST 2007
- Previous message: [Python-3000] Generic function PEP won't make it in time
- Next message: [Python-3000] Generic function PEP won't make it in time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Emin.shopper Martinian.shopper" <emin.shopper at gmail.com> wrote:
On 4/25/07, Calvin Spealman <ironfroggy at gmail.com> wrote: > > It sounds like you just need better unit tests.
Only if you believe you can unit test everything within a few seconds. If you believe that there exist data structures or algorithms where a meaningful unit test takes many minutes or hours, then there is value in an ABC enforcement mechanism.
If your unit tests take hours to run, then you aren't going to get anything useful from the ABC requirements for hours either (unless you are pre-instantiating everything you are going to use during program execution, in which case this could become your unittest).
Please remember that this isn't about Java style type checking and verification during compilation. This is, strictly speaking, ABC checking on object instantiation, method invocation, and possibly even argument verification. This isn't the magic bullet you are looking for (you'll have to go to one of those static typed languages for that).
- Josiah
- Previous message: [Python-3000] Generic function PEP won't make it in time
- Next message: [Python-3000] Generic function PEP won't make it in time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]