Ho lokolloa ha puo ea Nim 1.2.0

Tsebisoa tokollo ea puo ea lenaneo la sistimi Nim 1.2. Puo ea Nim e sebelisa ho ngola ka mokhoa o tsitsitseng 'me e entsoe ka leihlo la Pascal, C++, Python le Lisp. Khoutu ea mohloli oa Nim e bokelloa ka sebopeho sa C, C++, kapa JavaScript. Ka mor'a moo, khoutu ea C / C ++ e hlahisoang e hlophisitsoe hore e be faele e ka sebelisoang ho sebelisa moqapi ofe kapa ofe o teng (clang, gcc, icc, Visual C ++), e leng se u lumellang ho finyella ts'ebetso e haufi le C, haeba u sa nahane ka litšenyehelo tsa ho sebetsa. mokgoboki wa matlakala. Joalo ka Python, Nim e sebelisa indentation joalo ka li-block delimiters. Lisebelisoa tsa Metaprogramming le bokhoni ba ho theha lipuo tse ikhethileng tsa domain (DSLs) lia tšehetsoa. Khoutu ea morero fuoa tlas'a laesense ea MIT.

Liphetoho tse hlokomelehang tokollong e ncha li kenyelletsa:

  • E kentse ts'ebetso e ncha ea pokello ea lithōle ARC (“-gc:arc”).
  • Ka module "tsoekere"Ho kenyellelitsoe li-macros tse ncha, ho bokella le ho hapa.
  • E kentse macro e ncha "ka".
  • Karolo e kholo ea mehala e mecha e kentsoe laeboraring e tloaelehileng, ho kenyeletsoa strformat.fmt, strtabs.clear, browsers.osOpen, typetraits.tupleLen, typetraits.genericParams, os.normalizePathEnd, times.fromUnixFloat, os.isRelativeTo, times.isLeapDay , net.getPeerCertificates, jsconsole.trace, jsconsole.table, jsconsole.exception, sequtils.countIt, jj.
  • E kentse li-module tse ncha std/stackframes le std/compilesettings.
  • Likhetho tsa "-asm" (bakeng sa tlhahlobo ea khoutu ea kopano e hlahisitsoeng) le "-panics: on" bakeng sa ho tsoa ka likhoka ho IndexError le OverflowError liphoso li kentsoe ho motho ea bokellang, ntle le monyetla oa ho ts'oaroa ke "try" handler.
  • Netefatso e ntlafetseng ea li-buffer tse ka bang teng ka bongata.

Source: opennet.ru

Eketsa ka tlhaloso