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
Wish I could would have had these intro videos a couple of years ago! This is great content.
Wonderful content. Only 2k views don't do justice :(
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.
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.
Kept very simple and well explained. Thank you.
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!
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?
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 😊.
very good!
I am a newbie
When to use IsByRefLike ?
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.
I wish that F# struct DUs behaved like Rust enums 😊
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?
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
Please forgive me if this has been asked already, what is the IDE/Dev environment you are using for this series? Thanks!
I typically use VS Code for these intro demos. For work, I typically use JetBrains Rider.
Like the keep it simple when you start approach. Would have loved it when I started out
Me too! I don't know why anyone hasn't done this. This channel is my "Thank You" letter back to the community 😊.
welp, F# is more compicated asf compare to c#
I think F# is simpler than C#