F# Elegance for the VB Proletariat Part 2

A great way to learn something new is to map it to something that is already familiar.  Often times mapping the new concept to what you already know forces you to reexamine the way you are doing something.

In part 1 we built ourselves a handy recursive map function using F#.  [...]

F# Elegance for the VB Proletariat Part 1

I’ve been programming Visual Basic for eight years and haven’t really found a reason to switch to another language.  I’m certified in Java, written components in C#, done a website in PHP.  None of these languages offer anything that VB can’t already do.

But when a language comes along that does [...]

Can we please get single line lambda expressions working first?

One of the biggest pains with lambda expressions in Visual Basic is not being able to pass them as parameters to methods that expect an Action(of T).  Here’s a quick example of something you can’t do in VB.

 

Module Module1

Passing state to an AsyncCallback delegate

Last time we looked at a simple example of using an AsyncCallback delegate to perform an asynchronous operation.  We’ll build on this example and show how to pass some state into the callback.

Imports System.Net

 

Using an AsyncCallback delegate to perform an asynchronous operation

The last few years at work have left me with very little time to keep up a blog.  Thankfully, things have finally settled down, leaving me with some quality time in the evening to pick back up my exploration of the CLR.  

Silverlight was the hot topic at this year’s Devlink, [...]