type checking

Kalecser Kurtz kalecser at gmail.com
Mon Sep 5 13:14:47 UTC 2005


In smalltalk's dynamic typing aproach, do you think it's a good practice to 
throw errors when the user try to use incompatible types?

For example:

- I create a class 'Mock' to mock general objects;
- I create a class 'EntityMock' that is a Mock, but just to mock Entities, 
once entities use doesNotUnderstand to resolve some of it's methods;

So, if the user create a EntityMock with any other object than an entity 
should the system warn him?

[]'s Kalecser

-- 
Tis the business of little minds to shrink, 
but he whose heart is firm, and whose conscience approves his conduct,
will pursue his principles unto death.
Thomas Paine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050905/ab01ae9f/attachment.htm


More information about the Squeak-dev mailing list