
4 Jul
2006
4 Jul
'06
5:35 p.m.
Bronek Kozicki wrote:
Kevin Sopp wrote:
The compiler cannot check that the right tag is used since information is added to the exception at runtime, so you're still vulnerable to typos. That means you would still have to either put the tags
you only declare them; and if you used different name than declared, compiler will catch that error.
No, it will not, unless I'm misunderstanding something. You either have coupling and static checking, or you have no coupling and no static checking; strings or tags make no difference. A tag is just a compile-time string.