Le 28/09/2015 21:09, Peter Uhnák a écrit :
What is the difference?

—————————————————————————————————————
*ShouldBeImplemented*
*
*
I am ShouldBeImplemented, an exception signaled when some method should
have been implemented but was not.

Usually in a abstract class to signal that a concrete subclass should have implemented that method... defines the API all subclasses must answer to.

This is more like a placeholder during development.
—————————————————————————————————————
*NotYetImplemented*

I am NotYetImplement, an exception signaled when a method is a stub for
code that will be implemented in the future.

Pre-defines an API with a TODO: Implement Later.

This is used in incremental development, for example when doing Test
First development.
It is similar to ShouldBeImplemented, with a slightly different meaning.
—————————————————————————————————————

There seem to be some slight semantic difference but I'm failing to see it.
I can even say "The method should be implemented, but is not yet
implemented." It's saying the same thing with different words.

Hum, should be and not yet have different semantics.

Thierry


Thanks,
Peter


Reply via email to