The combined power of F# and C# #73
Replies: 3 comments 14 replies
-
|
hi Steven! Thank you for sharing! I can't find the source codes in the repository. Could you please have a look? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Kindly use the required keyword and remove the constructor. And if you like, you can use records also |
Beta Was this translation helpful? Give feedback.
13 replies
-
|
yeah, you can do recursion, so you can do something like... public abstract record Tree
{
public record Branch(int Value, ImmutableList<Tree> Children) : Tree;
public record Leaf(int Value) : Tree;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The combined power of F# and C#
Where C# is the most dominant language in the .NET world, other languages are built on top of the Framework that deserves their respective place. F# is strong when it comes down to functional programming! In this blog post, we will leverage the power of F# and C# to showcase where both excel!
https://steven-giesel.com/blogPost/2f70d926-ec92-4dfe-b278-18f78078253d
Beta Was this translation helpful? Give feedback.
All reactions