Roy blogs about testability in the language. I definitely think that the
language could cater testability, much like it connects with other development
needs. For example, in .NET there is the obsolete attribute which we may
decorate a method with, which causes the compiler to issue a warning if someone
compiles code that uses that method.
Likewise, I have for some time wondered if using an attribute indicating that
a method is for testing purposes only would be useful. I think so.
Anyway, thanks for this Roy! It's amazing to see how quickly that debate
springs up again! I am doing a workshop on testability and encapsulation and
this is definitely inspiring, I almost thought that everyone had already gone
past the encapsulation debate and that I wouldn't get anyone to discuss it with
- but here is proof that it is not so again!
Hopefully we'll get even more perspectives.