Content deleted Content added
Lo que habia que hacer ya esta hecho Tag: references removed |
Es que asi se ve mas bonito :V Tag: categories removed |
||
Line 26:
Nim is statically typed.<ref name="Nim Syntax">{{cite web |url=https://akehrer.github.io/posts/getting-started-with-nim |title=Nim Syntax |last=Kehrer |first=Aaron (akehrer) |website=GitHub |access-date=2015-01-05}}</ref> It supports compile-time [[metaprogramming]] features such as syntactic macros and [[Macro (computer science)#Syntactic macros|term rewriting macros]].<ref name="manual">{{cite web |url=https://nim-lang.org/docs/manual.html#term-rewriting-macros |title=Nim Manual |website=Nim-lang.org |access-date=2014-07-20}}</ref> Term rewriting macros enable library implementations of common data structures such as bignums and matrices to be implemented with an efficiency as if they were builtin language facilities.<ref name="strangeloop">{{cite web |url=https://thestrangeloop.com/sessions/nimrod-a-new-approach-to-meta-programming |archive-url=https://web.archive.org/web/20140713011227/https://thestrangeloop.com/sessions/nimrod-a-new-approach-to-meta-programming |dead-url=yes |archive-date=2014-07-13 |title=Strangeloop Nim presentation |access-date=2015-04-30}}</ref> Iterators are supported and can be used as first class entities<ref name="manual"/> in the language as can functions, these features allow for [[functional programming]] to be used. Object-oriented programming is supported by [[Inheritance (object-oriented programming)|inheritance]] and [[multiple dispatch]]. Functions can be generic and can also be overloaded, [[Generic programming|generics]] are further enhanced by the support for type classes. [[Operator overloading]] is also supported.<ref name="manual"/> Nim includes tunable automatic [[Garbage collection (computer science)|garbage collection]] based on deferred [[reference counting]] with [[Reference counting#Dealing with reference cycles|cycle detection]].<ref name="gc">{{cite web |url=https://nim-lang.org/docs/gc.html |title=Nim's Garbage Collector |website=Nim-lang.org |access-date=2018-01-10}}</ref> In 2014, Andrew Binstock (editor-in-chief of [[Dr. Dobb's Journal]]) said "Nimrod [former name] ... presents a most original design that straddles [[Pascal (programming language)|Pascal]] and [[Python (programming language)|Python]] and compiles to C code or JavaScript."<ref>{{cite web |url=http://www.drdobbs.com/jvm/the-rise-and-fall-of-languages-in-2013/240165192 |title=The Rise And Fall of Languages in 2013 |last=Binstock |first=Andrew |date=2014-01-07 |website=[[Dr. Dobb's Journal]] |access-date=2018-10-08}}</ref> Today, Nim compiles to C++ too.
== Language design ==
Line 170 ⟶ 166:
== External links ==
* {{GitHub|nim/nim}}
* [http://stackoverflow.com/tags/nimi/info Information about Nim] on [[Stack Overflow]]
|