欢迎加入运维网交流群:263444886
Nim 0.15.0 发布发布了,该版本包括了至少180项的bug修复以及改进。一些在这个版本中最显著的变化包括:改进的文档;另一个新的multisync宏;以及一个新的HttpClient实现。 部分更新记录:
The json module now uses an OrderedTable rather than a Table for JSON objects.
The split (doc) procedure in the strutils module (with a delimiter of typeset[char]) no longer strips and splits characters out of the target string by the entire set of characters. Instead, it now behaves in a similar fashion to split with stringand char delimiters. Use splitWhitespace to get the old behaviour.
Overloading the special operators ., .(), .=, () now needs to be enabled via the{.experimental.} pragma.
immediate templates and macros are now deprecated. Use untyped (doc) parameters instead.
The metatype expr is deprecated. Use untyped (doc) instead.
The metatype stmt is deprecated. Use typed (doc) instead.
The compiler is now more picky when it comes to tuple types. The following code used to compile, now it's rejected: