Convert Long-List-Argument Functions to DSLs by Interfaces(hcoding.blogspot.com)

submitted by ksh2dotnetkicksksh2dotnetkicks(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...

add a comment |category: |Views: 4

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story