InfoQ Homepage News F# 3.0 – LINQ + Type Providers = Information Rich Programming
F# 3.0 – LINQ + Type Providers = Information Rich Programming
This item in japanese
Sep 20, 2011 1 min read
Write for InfoQ
Feed your curiosity. Help 550k+ globalsenior developers
each month stay ahead.Get in touch
Microsoft recently announced a developer preview release of F# 3.0 – new features include LINQ-support through Query expressions and a Type Provider System along with a set of built-in providers that allow succinct programming against a variety of data sources.
Information Rich Programming features in F# 3.0 lets you program directly against databases, web services, web data feeds and data brokers. For instance, you will now be able to do this -
[<Generate>]
type Northwind = ODataService<"http://services.odata.org/Northwind/Northwind.svc/">
let db = Northwind.GetDataContext()query { for cat in db.Categories do
select (cat.CategoryID, cat.CategoryName, cat.Description) }
|> Seq.iter (fun (id, name, description) –>
printfn "ID: %d\nCategory: %s\nDescription: %s\n" id name description)
There are already Type Providers for commonly accessed data source types - OData Services, Database connections, Database Schema, Data specified by the Entity Data Model, Web services and Resource files. Also the Type System is open and pluggable which will allow developers as well as third parties to create their own providers.
A brief of what else new -
- Auto-Implemented Properties to allow properties without backend stores
- Parameter Help and Enhanced Intellisense
- Library Support for nullable types, including conversion operators and arithmetic operators
- Units of measure types for the International System of Units (SI). This was formerly in the F# PowerPack but has been promoted to the F# Core Library.
You can read details in the MSDN documentation. You can also download the F# Sample pack from CodePlex to see these features in action.
F# is a multi-paradigm programming language, targeting the .NET Framework, that encompasses functional programming as well as imperative and object-oriented programming disciplines.
This content is in the Microsoft topic
Related Topics:
-
Related Editorial
-
Related Sponsored Content
-
Popular across InfoQ
-
How Meta is Using a New Metric for Developers: Diff Authoring Time
-
Kafka 4.0: KRaft Simplifies Architecture
-
Microsoft Collaborates with Anthropic to Launch C# SDK for MCP Integration
-
Balancing Coupling in Software Design with Vlad Khononov
-
Anthropic's "AI Microscope" Explores the Inner Workings of Large Language Models
-
Using Artificial Intelligence in Software Testing
-
Related Content
The InfoQ Newsletter
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example