R
Roedy Green
I run into this sort of problem fairly often.
I have a method x that calls method y through a long chain of
intermediate calls.
I decide to add a feature. Method x has access to information to
decide if the feature should be implemented. Method y is where the
implementation is.
Somehow I must pass information down the long chain from x to y. This
means changing the signatures of all the intermediate methods, and
adjusting code to the new way. This can cause ripples incommensurate
with the triviality of the change.
I imagined some sort of wormhole to allow information in one place to
simply be known somewhere else without the excess exposure of public
variables or tediously arranging transport. I read about Eiffel a
long time ago. IIRC you could provide a list of precisely who could
see any given information.
I wondered if anyone had thoughts on ways of tackling such a problem.
I have a method x that calls method y through a long chain of
intermediate calls.
I decide to add a feature. Method x has access to information to
decide if the feature should be implemented. Method y is where the
implementation is.
Somehow I must pass information down the long chain from x to y. This
means changing the signatures of all the intermediate methods, and
adjusting code to the new way. This can cause ripples incommensurate
with the triviality of the change.
I imagined some sort of wormhole to allow information in one place to
simply be known somewhere else without the excess exposure of public
variables or tediously arranging transport. I read about Eiffel a
long time ago. IIRC you could provide a list of precisely who could
see any given information.
I wondered if anyone had thoughts on ways of tackling such a problem.