• 1 Post
  • 26 Comments
Joined 8 months ago
cake
Cake day: November 11th, 2024

help-circle


  • Well, I don’t know your use case well enough, but I guess you might have perfect reason for that behavior.

    One thing that comes to my mind is the old Try in C#

    bool parsedSuccessfully = int.TryParse("123", out int result);
    

    But I guess more popular approach would be to use Error as Values, right?

    E.g. something like this

    Outcome<Exception, Int> result = int.TotallyNewParse("123");
    








  • Thank you~!

    I want to spend as little time on it as I can. Then I’d like to minimize the initial cost of it, or at least cost of exploitation.

    I’m fairly busy with my hobbies (Lego and Arkham Horror LCG), so I’m looking for the solution. I’d rather spend more money than more time.

    On the other hand, if I waste money on garbage I’m going to be cross and do it from the scratch again, so I’m trying to hedge my options before I commit - if that makes sense.


  • Thank you.

    Next week 2 month / year when you decide to run something else or more, not so much.

    Could you maybe give me an example of what that could be? I might be not knowledgeable enough about what I could do with it.

    I don’t want to hear the fans

    To be precise, only when not in use. When it’s working then yeah, its gonna cool down somehow.






  • ThirdConsul@lemmy.mltoProgrammer Humor@lemmy.mlJava Bros
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 months ago

    C# covers all feature of functional programming that comes to mind from Go (edit: not Go, what was it, Haskell?).

    Traits? Done. Monads? Done. Functions as params? Sure. Closures, errors as values, whatever you want.

    What are the specific language features you’re looking for or think are missing in C#?