FeaturedIT topics

What’s new in the F# programming language

Microsoft has released the beta Version 4.5 of F#, which supports the Span value type from .Net Core to improve code.

Next version: What’s new in F# 4.5 beta

Span, aka Span<T>, enables the representation of contiguous regions in arbitrary memory. With Span, Microsoft wants F# to have better code generation particularly for byref-like constructions and full parity with .Net Core performance innovations. Interoperability with high-performance code also is a goal.

Span allows for safe use of performance-oriented constructs in a restrictive manner. For example, a developer cannot define an F# record type with a Span inside it, because Span is a byref-like type and thus can only be contained in other byref types.

The Span feature set in F# 4.5 includes:

Related Articles

Back to top button