Blog

Exciting New Things in F# 4.0

With the latest news of the release of Visual Studio 2015 some folks may not have realized but included in it is the newest release of F# 4.0. The .NET Blog has also officially announced the RTM. The most exciting thing about this release of F# is that, since F# has been open source for quite some time now, most of the fixes and updates were made by the F# community.

What exactly is different in the new version of F# is very nicely highlighted in the below video by Lincoln Atkinson.

However, there are quite a few other new features. Let’s take a quick look at a few of the ones I’m excited about.

Script Debugging

I’m sure I’m like most of the folks who mess with F# that they do a lot of their work with F# scripts and the F# Interactive, however before F# 4.0 there was no way to debug your scripts. Now we get the best of continuing to use scripts and being able to debug them!

Normalized Modules

As Lincoln mentioned in the above video, all functions are now normalized across List, Seq, and Array collections. This means that you can access the same functions among each of these collections where as in F# 3.1 that wasn’t always the case.

Slicing Syntax in Lists

In F# 4.0 we can now use the syntax similar to the below for slicing in Lists instead of converting to an Array to slice then convert back to a List.

let l = [1..5] // val l : int list = [1; 2; 3; 4; 5]

l.[0..] // val it : int list = [2; 3; 4; 5]
l.[..4] // val it : int list = [1; 2; 3; 4; 5]

Those are just some of the more interesting, and probably some of the most beneficial, changes made to the language. The folks over at the .NET Blog also made a nice summary of all the big changes.


Wonder what F# and Wintellect can do for you or your business, or just have more questions about F# in general? Feel free to reach out to us!

Jonathan Wood

Recent Posts

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

5 days ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

3 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago

Mastering Compliance: The Definitive Guide to Managed Compliance Services

In the intricate landscape of modern business, compliance is both a cornerstone of operational integrity…

2 months ago