Fast F#: Intro to Discriminated Unions

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Discriminated Unions are one of the cornerstones of the F# language. It allows for elegantly expressing domains and creating clean code.
    Code: github.com/mat...
    === Contact ===
    Email: hi@fastfsharp.com
    Mastadon: mastodon.sdf.o...
    Twitter: / fastfsharp
    === Support ===
    Ko-Fi: ko-fi.com/fast...
    === Tags ===
    Tags: #fsharp, #dotnet

Комментарии • 21

  • @WillEhrendreich
    @WillEhrendreich Год назад +1

    Wish I could would have had these intro videos a couple of years ago! This is great content.

  • @ahmedreza8221
    @ahmedreza8221 5 месяцев назад

    Wonderful content. Only 2k views don't do justice :(

  • @undisclosedperson3871
    @undisclosedperson3871 Год назад +8

    Superb content. F# lacks a good source to get people into it, and it’s great to see more tutorials and explanations with a consistent brand and friendly persona.

    • @Michal_Peterka
      @Michal_Peterka Год назад +1

      I think that there are few good sources about the foundations. But what would be nice if there were some channels with some "bigger" projects.
      Yeah, Mathews explanations are really good and have interesting topics.

  • @DhanamayaKarki-bs9lr
    @DhanamayaKarki-bs9lr Год назад +1

    Kept very simple and well explained. Thank you.

  • @JustinSkeen
    @JustinSkeen Год назад

    I am just starting to learn the pattern matching features they have added to C#. Since this feature has been added since I've been using C# I have grown with it and this has really helped me grok the idea here. I know they are different domains but they have some similar concepts. I really like the arrow pointer in F# for part of the syntax!

  • @WillEhrendreich
    @WillEhrendreich Год назад

    Hey, so, I'm curious, you kept saying "print function" for printfn. But I thought it was print format newline. Was I mistaken about that?

    • @FastFSharp
      @FastFSharp  Год назад

      No, you're not. I just got used to calling the "printfn" function "Print Function" because I thought of of the "fn" at the end as an abbreviation for function but it really isn't. Bad habit I picked up 😊.

  • @evertonfa7
    @evertonfa7 Год назад

    very good!

  • @thuraaung3122
    @thuraaung3122 9 месяцев назад

    I am a newbie

  • @alaindevos4027
    @alaindevos4027 7 месяцев назад

    When to use IsByRefLike ?

  • @WizardofWestmarch
    @WizardofWestmarch Год назад +1

    Funny note on the beginning of your video about "this is what enums want to be." In Rust enums are their tagged/discriminated union construct.

    • @FastFSharp
      @FastFSharp  Год назад +1

      I wish that F# struct DUs behaved like Rust enums 😊

  • @fsaldan1
    @fsaldan1 9 месяцев назад

    Wonderful video. Very clear. Since you asked for suggestions, could you create one or more videos about dataframes, which in F# are modelled by the Deedle library?

  • @Michal_Peterka
    @Michal_Peterka Год назад

    Good to know that union case can have same name that already defined type.
    I was always thinking about different names and sometimes it made me crazy :D

  • @JustinSkeen
    @JustinSkeen Год назад

    Please forgive me if this has been asked already, what is the IDE/Dev environment you are using for this series? Thanks!

    • @FastFSharp
      @FastFSharp  Год назад

      I typically use VS Code for these intro demos. For work, I typically use JetBrains Rider.

  • @KarthikAnanthanarayanan
    @KarthikAnanthanarayanan Год назад

    Like the keep it simple when you start approach. Would have loved it when I started out

    • @FastFSharp
      @FastFSharp  Год назад

      Me too! I don't know why anyone hasn't done this. This channel is my "Thank You" letter back to the community 😊.

  • @manhxxo
    @manhxxo 6 месяцев назад

    welp, F# is more compicated asf compare to c#