Timeline for Returning true/nothing instead of true/false?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 30, 2020 at 18:52 | comment | added | OliverRadini |
@Heinzi haha yes of course, I missed that the ? was in the block. I'm fairly sure that it does.
|
|
| May 30, 2020 at 18:37 | comment | added | Heinzi |
@OliverRadini: I mean bool?, also known as Nullable<bool>. Does my comment make more sense now?
|
|
| May 30, 2020 at 18:10 | comment | added | OliverRadini |
@Heinzi sorry, I don't think I'm following - C# does indeed support bool but every code path in the function must either return or throw a function
|
|
| May 30, 2020 at 17:26 | comment | added | Heinzi |
Just for completeness sake, C# does support bool?. Not that I would advocate using it in that case...
|
|
| May 30, 2020 at 11:30 | comment | added | OliverRadini | @ThorbjørnRavnAndersen A good solution indeed, it seems like there are many ways to us monads for error handling | |
| May 30, 2020 at 11:09 | comment | added | Thorbjørn Ravn Andersen | I like the Either line of thought for languages without exceptions. | |
| May 30, 2020 at 9:10 | review | First posts | |||
| Jun 1, 2020 at 19:37 | |||||
| May 30, 2020 at 9:09 | history | answered | OliverRadini | CC BY-SA 4.0 |