Skip to content

Conversation

timotheecour
Copy link
Member

lots of reasons:
CTFE
static if (aka when)
nim's templates are closest to D templates amongst other languages

@Araq
Copy link
Member

Araq commented Mar 24, 2018

CTFE is the natural solution for imperative AST construction in Nim's macros, it was there from day one. I don't remember if I've seen it in D before. Nim's template are quasi-quotes and have little to do with D's. static if -- maybe, but I think C's preprocessor #if was the major influence here.

Either way, later C# was an influence with the => syntax for lambdas, Golang for defer and recently Rust with its lifetime tracking. I think we need to change the wording of that paragraph without introducing more and more languages. :-)

Also it says "in order of impact" and C++ and Python had much more impact on Nim than D.

@dom96
Copy link
Contributor

dom96 commented Mar 24, 2018

also, this isn't where the website is anymore. We need to remove it from this repo. It's now in here: https://github.com/nim-lang/website/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants