@tvodevil01@davidfowl I use the unit type from ReactiveUI (and copy the source if I don't want to import the whole library). But yes, this should be a standard feature located in System.
@davidfowl My personal opinion is that Rust is doing many things better than C#. Like that functions have their own type and require a trait for casting. https://t.co/2csnC0XZ0S
@KarenPayneMVP@Dave_DotNet Also, since you do a generic catch all exception, you loose the information which kinds of exceptions can happen. Especially with databases you potentially can get dozens of different exception types.
@KarenPayneMVP@Dave_DotNet I'm conflicted on that idea. It's good since it forces you to handle the exception, preventing application crashes. But I don't like that version, since it only returns either one, so the OneOf or StructuredUnion class (NuGet) would be the proper way of doing it.
@Dave_DotNet with the ValueTuple only the values are named. With an Struct you not only name the values but also the structure. So if you don't need the additional naming a ValueTuple is fine, but sometimes a dedicated structure will bring additional clarity.
@FuchsTauber@brodnig Ich kannte Arvay und seine Freundin. Schon lange vor COVID. War immer sehr nett und voller guter Absichten, aber mit logischem Denken konnte er noch nie was anfangen. Man hätte dem nie eine Plattform geben sollen.
@Mittellaendisch eine Impfnebenwirkung ist noch lange kein Schaden. Ich habe nach jeder Impfung für einen Tag Fieber, sowie Kopf- und Gliederschmerzen; einfach weil das Immunsystem arbeitet. Hole mir trotzdem jede Impfung.