Timeline for Conditionally creating objects at runtime using Spring.NET
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2016 at 18:34 | comment | added | JDT | It's not really a sentinel value... Sentinel values have something to do with lists or sequences and work as a value that indicates the end of said list or sequence. Null Objects are specific objects that are designed to act as an object that has no specific behaviour. | |
Mar 7, 2016 at 16:53 | comment | added | user2023861 | This is similar to a Sentinal Value en.wikipedia.org/wiki/Sentinel_value It's a special value that signifies that your code should behave differently. I think the only requirement for using one is that it has the same type as an actual value, but it will not be realistically returned. So -1 could be a sentinal value for an algorithm that counts things but not for an algorithm that solves equations. | |
Mar 7, 2016 at 16:23 | history | answered | JDT | CC BY-SA 3.0 |