Timeline for What is the most elegant way to write a "Try" method in C# 7?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 17, 2017 at 4:51 | comment | added | Eric Sondergard | @Bob That's a great point. I agree. | |
| Mar 17, 2017 at 4:51 | vote | accept | Eric Sondergard | ||
| Mar 16, 2017 at 23:48 | comment | added | Bob | I wonder if it would be a better idea to pick a different name, since by doing this you are breaking Try... naming conventions in .NET (and potentially confusing maintainers). | |
| Mar 16, 2017 at 18:55 | comment | added | Jörg W Mittag | By the way, flatMap / bind is called SelectMany in .NET. | |
| Mar 16, 2017 at 18:54 | comment | added | Jörg W Mittag | The nice thing about Option / Maybe is that it is a monad (if implemented as one, of course), which means that it can be safely chained, wrapped, unwrapped, and processed without ever needing to handle the different cases directly, and this chaining and processing can be done with LINQ Query Expressions. | |
| Mar 16, 2017 at 18:40 | history | edited | Jules | CC BY-SA 3.0 | added 231 characters in body |
| Mar 16, 2017 at 18:37 | comment | added | Eric Sondergard | This is definitely a good option, thanks for the suggestion and your thoughts. I was really looking to explore more ideas here. | |
| Mar 16, 2017 at 18:36 | vote | accept | Eric Sondergard | ||
| Mar 17, 2017 at 4:51 | |||||
| Mar 16, 2017 at 18:36 | history | edited | Jules | CC BY-SA 3.0 | added 231 characters in body |
| Mar 16, 2017 at 18:32 | vote | accept | Eric Sondergard | ||
| Mar 16, 2017 at 18:32 | |||||
| Mar 16, 2017 at 18:31 | vote | accept | Eric Sondergard | ||
| Mar 16, 2017 at 18:31 | |||||
| Mar 16, 2017 at 18:23 | history | answered | Jules | CC BY-SA 3.0 |