-
F#
鎖定
- 軟件名稱
- F#
- 軟件平台
- .NET [3]
- 上線時間
- 2005年
- 最近更新時間
- 2022年11月30日 [6]
F#發展歷程
F#讀做 "F sharp",中文譯音暫時沒有。專業人士一般讀"F sharp",現在很多非專業一般讀"F井"。雖然不專業,但是十分容易理解。
F#自2002年開始研發,2005年發佈了第一個版本,2007年底正式從研發專案轉移至產品部門,並決定將F#置入Visual Studio 2010。截止目前(2015年4月7日現在),最新的F#為F# 4.0
[1]
。搭載於Visual Studio 2015中。
F#主要功能
微軟計劃將慢慢整合F#至.NET平台並使F#成為.NET平台的計算輔助語言。F#是一種函數型程序設計(FP,Functional Programming)語言。然而F#對IP(Imperative Programming)與OOP(Object Oriented Programming)的支持幾乎一樣的出色。
F#版本記錄
- F# 6
- F# 5
- F# 4.7
- F# 4.6
F#代碼示例
代碼示例:F# Hello World 程序
(* This is commented *) (* Sample hello world program *) printfn "Hello World!" #light (* Sample Windows Forms Program *) (* We need to open the Windows Forms library *) open System.Windows.Forms (* Create a window and set a few properties *) let form = new Form(Visible=true, TopMost=true, Text="Welcome to F#") (* Create a label to show some text in the form *) let label = let temp = new Label() let x = 3 + (4 * 5) (* Set the value of the Text*) temp.Text <- sprintf "x = %d" x (* Remember to return a value! *) temp (* Add the label to the form *) do form.Controls.Add(label) (* Finally, run the form *) [<STAThread>] do Application.Run(form)
- 參考資料
-
- 1. Visual F# 介紹 .Microsoft開發人員中心
- 2. 什麼是 F# | Microsoft Learn .微軟.2020-01-05[引用日期2023-01-17]
- 3. 安裝 F# | Microsoft Learn .微軟.2020-01-05[引用日期2023-01-17]
- 4. F# 機器學習工具 | Microsoft Learn .微軟.2020-01-05[引用日期2023-01-17]
- 5. 適用於 Web 開發的 F# | Microsoft Learn .微軟.2020-01-05[引用日期2023-01-17]
- 6. F# 6 中的新增功能 - F# 指南 | Microsoft Learn .微軟.2020-01-05[引用日期2023-01-17]