Convert Long-List-Argument Functions to DSLs by Interfaces(hcoding.blogspot.com)
submitted by
ksh2dotnetkicks(135) 3 years, 8 months ago
This is a little DSL for sending emails in C#. I had a function with many arguments that I should have take care of them. And the code was ugly in C#; a function name with a long list of values after it. In F# it is very nicer since we can use argument names for assigning values to arguments by using option type...
|category: C#
|Views: 4
tags:
C# another
Everyones tags:
Your Tags: