1.8 KiB
v0.20.0 - XX/XX/2018
Changes affecting backwards compatibility
-
The
isLower,isUpperfamily of procs in strutils/unicode operating on strings have been deprecated since it was unclear what these do. Note that the much more useful procs that operator oncharorRuneare not affected. -
strutils.editDistancehas been deprecated, useeditdistance.editDistanceoreditdistance.editDistanceAsciiinstead. -
The OpenMP parallel iterator `
||` now supports any#pragma omp directivesand not just#pragma omp parallel for. See OpenMP documentation.The default annotation is
parallel for, if you used OpenMP without annotation the change is transparent, if you used annotations you will have to prefix your previous annotations withparallel for.
Breaking changes in the standard library
Breaking changes in the compiler
Library additions
-
There is a new stdlib module
editdistanceas a replacement for the deprecatedstrutils.editDistance. -
Added
split,splitWhitespace,size,alignLeft,align,strip,repeatprocs and iterators tounicode.nim. -
Added
orforNimNodeinmacros. -
Added
system.typeoffor more control over howtypeexpressions can be deduced.
Library changes
- The string output of
macros.lispReprproc has been tweaked slightly. ThedumpLispmacro in this module now outputs an indented proper Lisp, devoid of commas.
Language additions
- Vm suport for float32<->int32 and float64<->int64 casts was added.
Language changes
Tool changes
jsondocnow include amoduleDescriptionfield with the module description.jsondoc0shows comments as it's own objects as shown in the documentation.