單機遊戲下載單機遊戲下載基地
最新遊戲|熱門遊戲|遊戲大全|遊戲專題
壓縮解壓光盤工具文字輸入殺毒軟件文件處理轉換翻譯股票證券辦公學習編程軟件虛擬光驅
當前位置:首頁應用軟件編程軟件 → Nim命令式編程語言0.17.0官方最新版

Nim命令式編程語言0.17.0官方最新版

  • Nim命令式編程語言0.17.0官方最新版截圖0
< >
Nim命令式編程語言0.17.0官方最新版下載
好玩 好玩 0
坑爹 坑爹 0
  • 應用語言:中文
  • 應用大小:18.9M
  • 更新時間:2017-05-19 17:2
  • 發行時間:
  • 應用類型:普通
  • 應用標簽: Nim
Nim命令式編程語言0.17.0官方最新版是一個新型的靜態類型、命令式編程語言,支持過程式、函數式、麵向對象和泛型編程風格而保持簡單和高效。Nimrod從Lisp繼承來的一個特殊特性--抽象語法樹AST作為語言規範的一部分,可以用作創建領域特定語言的強大宏係統。語[更多]
應用介紹

Nim命令式編程語言0.17.0官方最新版是一個新型的靜態類型、命令式編程語言,支持過程式、函數式、麵向對象和泛型編程風格而保持簡單和高效。Nimrod從Lisp繼承來的一個特殊特性--抽象語法樹(AST)作為語言規範的一部分,可以用作創建領域特定語言的強大宏係統。

語言特點

Nimrod 是一個編譯型的具有垃圾收集的係統編程語言,有著極其卓越的生產/性能比。Nimrod 的設計集中在三個E上:即效率(efficiency)、表達能力(expressiveness)和優雅(elegance)。

更新內容

Nim 0.17.0 發布了,Nim 是一種專注於性能,可移植性和表現力的係統編程語言。

此版本修複了 0.16.0 版本中最重要的回歸,特別是內存管理器和通道錯誤已經修複。

語言方麵也有很多重大改進,特別是在概念(concepts)方麵投入大量的工作。請查看下麵的更改日誌,獲取全麵的更改列表。

影響向後兼容性的變更:

There are now two different HTTP response types, Response and AsyncResponse. AsyncResponse’s body accessor returns a Future[string]!

Due to this change you may need to add another await in your code.

httpclient.request now respects the maxRedirects option. Previously redirects were handled only by get and post procs.

The IO routines now raise EOFError for the “end of file” condition. EOFError is a subtype of IOError and so it’s easier to distinguish between “error during read” and “error due to EOF”.

A hash procedure has been added for cstring type in hashes module. Previously, hash of a cstring would be calculated as a hash of the pointer. Now the hash is calculated from the contents of the string, assumingcstring is a null-terminated string. Equal string and cstring values produce an equal hash value.

Macros accepting varargs arguments will now receive a node having the nkArgList node kind. Previous code expecting the node kind to be nkBracket may have to be updated.

memfiles.open now closes file handles/fds by default. Passing allowRemap=true to memfiles.open recovers the old behavior. The old behavior is only needed to call mapMem on the resulting MemFile.

posix.nim: For better C++ interop the field sa_sigaction*: proc (x: cint, y: var SigInfo, z: pointer) {.noconv.} was changed to sa_sigaction*: proc (x: cint, y: ptr SigInfo, z: pointer) {.noconv.}.

The compiler doesn’t infer effects for .base methods anymore. This means you need to annotate them with .gcsafe or similar to clearly declare upfront every implementation needs to fullfill these contracts.

system.getAst templateCall(x, y) now typechecks the templateCall properly. You need to patch your code accordingly.

macros.getType and macros.getTypeImpl for an enum will now return an AST that is the same as what is used to define an enum. Previously the AST returned had a repeated EnumTy node and was missing the initial pragma node (which is currently empty for an enum).

macros.getTypeImpl now correctly returns the implementation for a symbol of type tyGenericBody.

If the dispatcher parameter’s value used in multi method is nil, a NilError exception is raised. The old behavior was that the method would be a nop then.

posix.nim: the family of ntohs procs now takes unsigned integers instead of signed integers.

In Nim identifiers en-dash (Unicode point U+2013) is not an alias for the underscore anymore. Use underscores instead.

When the requiresInit pragma is applied to a record type, future versions of Nim will also require you to initialize all the fields of the type during object construction. For now, only a warning will be produced.

The Object construction syntax now performs a number of additional safety checks. When fields within case objects are initialiazed, the compiler will now demand that the respective discriminator field has a matching known compile-time value.

On posix, the results of waitForExit, peekExitCode, execCmd will return 128 + signal number if the application terminates via signal.

ospaths.getConfigDir now conforms to the XDG Base Directory specification on non-Windows OSs. It returns the value of the XDG_CONFIG_DIR environment variable if it is set, and returns the default configuration directory, “~/.config/”, otherwise.

Renamed the line info node parameter for newNimNode procedure.

The parsing rules of do changed.

下載地址

Nim命令式編程語言0.17.0官方最新版

    熱門評論

    最新評論

    發表評論 查看所有評論(0)

    昵稱:
    表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
    (您的評論需要經過審核才能顯示)

    配置需求

    推薦專題

    up對戰平台up對戰平台

    關於飛翔 | 聯係我們 | 大事記 | 下載幫助(?) | 廣告聯係 | 版權聲明 | 網站地圖 | 友情鏈接

    Copyright 2010-2013 單機遊戲下載 (R) 版權所有 飛翔下載所有遊戲及軟件下載資源來源互聯網,並由網友上傳分享。如有侵權,請來電來函告之。
    飛翔忠告:抵製不良色情、反動、暴力遊戲 合理安排遊戲時間 享受健康生活【鄂ICP備13011873號-1】