Here's my, rather short, list.
I'll occassionally use can in a unit test, to verify that an object implements an interface (where "verify" is as close as one can get in a language that doesn't support first-class interfaces). Using can reduces the need to litter classes with predicates that are only there for purposes of testing.
In reply to Re: When I use "can"
by dws
in thread When I use "can"
by Abigail-II
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |