Content deleted Content added
Guy Harris (talk | contribs) Not relevant to contents of article. |
|||
(8 intermediate revisions by 6 users not shown) | |||
Line 1:
{{
{{archives}}
{{WikiProject
{{WikiProject
}}
==HelloWorld==
Line 68 ⟶ 69:
::will not compile, and compiler will report the issue:
<syntaxhighlight lang="text">
a.d:10:18: error: immutable function 'a.main.mysum' cannot access mutable data 'pivot'
10 | if (b <= pivot) // ref to enclosing-scope
Line 117 ⟶ 118:
[[User:Son of eugene|Son of eugene]] ([[User talk:Son of eugene|talk]]) 20:03, 25 June 2021 (UTC)
== Influenced Go? I do not think sol. ==
In a top infobox, I see that D influenced Go.
I find this doubtful.
D influenced some languages, including modern C++, Nim, etc. But I really doubt it influenced Go in anyway at all. Go has completely different execution model, typing system, syntax, no templates, different module system, different concurrency methods, different error control, no metaprogramming. I would be super hard to find ANY concept taken from D that got into Go.
The only thing vaguely similar is Go and D compilers speed, which were kind of new at the time (currently many other compiled languages like Zig and Nim are even faster in this regard). But modern D is much slower than Go in compilation area (partially due to D standard libraries growing big). Even if so, this is hardly an influence of any kind. [[Special:Contributions/2A02:168:F609:1:BEDA:2803:4006:38FD|2A02:168:F609:1:BEDA:2803:4006:38FD]] ([[User talk:2A02:168:F609:1:BEDA:2803:4006:38FD|talk]]) 17:38, 5 March 2023 (UTC)
:After thinking a bit more about this. There is one feature in Go which is very similar to D. That pointer and reference dereferences, all use dot, instead of arrow for pointers and dot for references or values. I am not sure if this was influenced by D tho. [[Special:Contributions/2A02:168:F609:1:BEDA:2803:4006:38FD|2A02:168:F609:1:BEDA:2803:4006:38FD]] ([[User talk:2A02:168:F609:1:BEDA:2803:4006:38FD|talk]]) 18:34, 5 March 2023 (UTC)
== usage of 'mathematical corellaries' ==
the fifth paragraph under Features reads "Specific operators for string handling exist, '''visually''' distinct from '''mathematical corellaries'''".
i believe this should be changed to something like "'''syntactically''' distinct from '''numerical operators'''", or just removed from the paragraph because:
- "visually" might be ableist. "syntactically" might also be more correct, as programming languages arent defined over what they visually look like, but in terms of (also) their syntax.
- the word "cor'''e'''llaries" seems to be a typo of "cor'''o'''llaries". a naive google search for "corellaries" turns up very few results (this page is the top result btw). wiktionary has no entry for it either.
- even if we correct it to "corollary" the phrase still is wrong. "mathematical corollaries" have nothing to do with the rest of the paragraph or page. the reference material for the phrase does not contain the words "corollaries" or "corellaries". i have no idea how this word ended up here.
- string operators, in a sense, can also be called "mathematical operators". strings of characters can be defined and studied mathematically. [[Special:Contributions/187.61.153.177|187.61.153.177]] ([[User talk:187.61.153.177|talk]]) 00:10, 15 January 2024 (UTC)
:@[[User:187.61.153.177|187.61.153.177]] - [[Help:Editing|Do it. There is nothing or no-one stopping you]], as long as you are trying to improve the encyclopedia. I would recommend implementing the first sentence of what you said. You probably won't see this, but [[WP:BOLD|you can do it]]. <span style="font-family:monospace;background:#368;padding:.2rem;color:white">''[[User:APenguinThatIsSilly|<span style="color:white">APenguinThatIsSilly</span>]]''(''[[User talk:APenguinThatIsSilly|<span style="color:#FEC">"talk"</span>]]'')</span> 21:13, 14 January 2025 (UTC)
|