| Next | Program Repair Shop | 23 |
My Text::Template module has an interface like this
Error messages are deposited in $Text::Template::ERROR
I periodically get worried email about this
Isn't this violating the interface abstraction?
No.
What if the variable name or implementation changes in the future?
It won't.
Wouldn't it be safer to provide a function to be the interface?
No.
But what if you decide to change it someday?
Then you're doomed. I could decide to change the function too, you know.
| Next | ![]() |
Copyright © 2006 M. J. Dominus |