5 out of 6 rated this helpful - Rate this topic

What's New for Visual F# in Visual Studio 11 Beta

Visual Studio 2012

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Visual F# in Visual Studio 11 Beta features F# 3.0, which extends the succinct and expressive F# language to support F# information-rich programming. This technology lets you program directly against rich spaces of data and services that often dominate enterprise and web programming today, such as databases, web services, web data feeds and data brokers.

F# information-rich programming is code-focused and can be used in both scripts and projects. It also allows you to specify OData and SQL Server database connections directly in your code, while giving strong types with IntelliSense assistance. The mechanism is extensible, allowing you to write or reference new providers for data, code and service technologies such as SharePoint, web ontologies, Windows Management Instrumentation (WMI), XML and other information sources. F# information-rich programming includes the F# Type Providers mechanism, F# LINQ Queries, and a set of built-in type providers for database, OData, and web service programming.

Visual F# in Visual Studio 11 Beta also includes many enhancements to the code editor designed to improve productivity when writing F# code.

The following new features are available in F# 3.0:

  1. Type Providers. Type Providers generate types based on structured data. They make it easier to access diverse sources of data. Type providers for several commonly used data sources are included in the F# library. For general information on type providers, see Type Providers. These include:

    Additionally, you can author your own type providers. For more information see, Tutorial: Creating a Type Provider (F#).

  2. Query Expressions. This feature implements LINQ for F#. You can now write queries in a SQL-like syntax in the F# language. For more information, see Query Expressions (F#).

  3. Auto-implemented properties. You can now declare properties without also declaring a backing store for the property. For more information, see Properties (F#).

This version of Visual F# contains the following enhancements in the editor and integrated development environment (IDE):

  • Parameter Help. When typing a function or method call, information on each parameter now appears as you type.

  • Enhanced IntelliSense. These features provide helpful information in tooltips as you write code in F#.

The following new features are included in this version of the F# Core Library:

In addition, you might want to be aware of the following minor changes:

  1. Triple-quoted strings. These strings can contain single-quote characters. For more information, see Strings (F#).

Did you find this helpful?
(1500 characters remaining)