Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

Microsoft makes F# 4.6 and F# tools for Visual Studio 2019 generally available

Save for later
  • 120 min read
  • 2019-04-03 10:09:19

article-image

Last week, Microsoft announced the general availability of F# 4.6 and F# tools for Visual Studio 2019. This release comes with a new record type called Anonymous Records and also few updates in the F# Core library.

F# 4.6 and F# tools for Visual Studio 2019


For the updates and development of new features in F# 4.6, the team followed an open RFC process. Writing named record types in F# was not really easy in previous versions and to address exactly that a new type is introduced called Anonymous Records. These F# record types do not have any explicit name and can be declared in an ad-hoc fashion.

Updates in F# Core library


In the F# Core library, updates are made to the 'ValueOption' type. With this release, a new attribute is added called DebuggerDisplay that helps in debugging. The IsNone, IsSome, None, Some, op_Implicit, and ToString members are added. In addition to these updates, there is now a 'ValueOption' module, which has the same functions the Option module has.

F# tools for Visual Studio 2019


A lot of focus has been put on improving the performance of F# tools for Visual Studio, especially for larger solutions. Previously, F# compiler and tools struggled when used for larger solutions and caused a lot of memory and CPU usage. To address this problem the team has done few updates in the F# parser, reduced the cache sizes, significantly reduced the allocations when processing format strings, and more.

This release also comes with a new feature that intelligently idents pasted code based on where your cursor is. You can use this feature by turning on Smart Indent via Tools > Options > Text Editor > F# > Tabs > Smart this will be on automatically.

Read the entire list of updates in F# 4.6 and F# tools for Visual Studio 2019 on Microsoft’s blog.

Microsoft releases TypeScript 3.4 with an update for faster subsequent builds, and more

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at £15.99/month. Cancel anytime

Microsoft, Adobe, and SAP share new details about the Open Data Initiative

Microsoft introduces Pyright, a static type checker for the Python language written in TypeScript