设为首页 收藏本站
查看: 2402|回复: 0

[软件发布] F# 4.0 发布,标准化 Array, List 和 Seq 模块

[复制链接]

尚未签到

发表于 2015-7-26 08:53:05 | 显示全部楼层 |阅读模式
腾讯SNG夏日招聘集结号:200个空缺岗位,JAVA、C++、云计算、Android……
DSC0000.jpg   Visual F# 4.0 发布,此版本现已提供下载:
  https://www.visualstudio.com/downloads/download-visual-studio-vs。
  F# 4.0 包含新的语言特性:

  •   构造函数作为一级函数
  •   可变值的使用简化
  •   支持高维的数组
  •   支持方法中的静态参数
  •   简化列表的语法
  •   简化 printf 函数的使用
  •   GC 优化提升性能
  API 改进:

  •   标准化和扩展 Array, List 和 Seq 模块

    •   New APIs for 4.0: chunkBySize, contains, except, findBack, findInstanceBack, indexed, item, mapFold, mapFoldBack, sortByDescending, sortDescending, splitInto, tryFindBack, tryFindIndexBack, tryHead, tryItem, tryLast

  •   其他新 API
      

    •   Option.filter, Option.toObj, Option.ofObj, Option.toNullable, Option.ofNullable
    •   String.filter
    •   Checked.int8, Checked.uint8
    •   Async.AwaitTask (non-generic)
    •   WebClient.AsyncDownloadFile, WebClient.AsyncDownloadData
    •   tryUnbox, isNull

  其他值得关注的改进:

  •   New active pattern to match constant Decimal in quotations
  •   Slicing support for lists
  •   Support for consuming high-rank (> 4) arrays
  •   Support for units of measure in printf-family functions
  •   Support for constructors/class names as first-class functions
  •   Improved exception stack traces in async code
  •   Automatic mutable/ref conversion
  •   Support for static arguments to provided methods
  •   Support for non-nullable provided types
  •   Added NonStructuralComparison module containing non-structural comparison operators
  •   Support for rational exponents in units of measure
  •   Give fsi.exe, fsiAnyCpi.exe nice icons
  •   Microsoft. optional in namepsace paths from FSharp.Core
  •   Support for extension properties in object initializers
  •   Pre-support (not yet used) for additional nativeptr intrinsics
  •   Simplified, more robust resolution of type references in quotations
  •   Support for inheritance of types that have multiple interface instantiations
  •   Extended preprocessor grammar
  •   Support for implicit quotation of expressions used as method arguments
  •   Support for multiple properties in []
  •   Eliminate tuple allocation for implicitly returned formal arguments
  •   Perf: fsc.exe now uses GCLatencyMode.Batch
  •   Perf: Improved hash/compare/distinctBy/groupBy performance
  •   Perf: Seq.toArray perf improvement
  •   Perf: Use OptimizedClosures.FSharpFunc in seq.fs where applicable
  •   Perf: Use literals and mutable variables instead of ref cells for better performance in SHA1 calc
  •   Perf: Use smart blend of System.Array.Copy and iterative copy for array copies
  •   Perf: Change Seq.toList to mutation-based to remove>List.rev
  •   Perf: Change pdbClose to test if files are locked before inducing GCs
  •   Perf: Use server GC mode for compiler
  Visual Studio 方面的改进:

  •   Updated all templates (except tutorial) to include AssemblyInfo.fs setup in the same manner as default C# project templates
  •   Add keyboard shortcuts for FSI reset and clear all
  •   Improved debugger view for Map values
  •   Improved performance reading stdout/stderr from fsi.exe to F# Interactive window
  •   Support for VS project up-to-date check
  •   Improved project template descriptions, make it clearer how to target Xamarin platforms
  •   Intellisense completion in object initializers
  •   Add menu entry "Open folder in File Explorer" on folder nodes
  •   Intellisense completion for named arguments
  •   Alt+Enter sends current line of code to interactive if there is no selection
  •   Support for debugging F# scripts with the VS debugger
  •   Add support for hexadecimal values (like 0xFF) ??to MSBuild property BaseAddress
  •   Updated menu icons used for F# interactive to align with other VS interactive windows
  此外还有写 bug 修复,详细改进内容请看更新日志。
  F#是由微软发展的为微软.NET语言提供运行环境的程序设计语言,是函数编程语言(FP,Functional Programming),函数编程语言最重要的基础是Lambda Calculus。它是基于OCaml的,而OCaml是基于ML函 数程式语言。有时F# 和 OCaml 的程式是可以交互编译的。
  F#已经接近成熟,支援Higher-Order Function、Currying、Lazy Evaluation、Continuations、Pattern Matching、Closure、List Processing、Meta-Programming。这是一个用于显示.NET在不同编程语言间互通的程序设计,可以被.NET中的任意其它代码编译和调用。
  F#将被集成在Visual Studio 2010中,含有对.Net Framework的完全支持。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-90663-1-1.html 上篇帖子: Android M 版本号确认 下篇帖子: Dom4j 2.0.0 RC1 发布,XML 操作库
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表