D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14644 - Wikipedia page on Generic Programming should have a section on D
Summary: Wikipedia page on Generic Programming should have a section on D
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: Vladimir Panteleev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-03 03:13 UTC by Andrei Alexandrescu
Modified: 2020-03-21 03:56 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrei Alexandrescu 2015-06-03 03:13:23 UTC
See https://en.wikipedia.org/wiki/Generic_programming
Comment 1 Walter Bright 2015-06-03 03:24:57 UTC
Wikipedia deleted my entries giving D examples for various programming concepts. Perhaps someone else will have more success.
Comment 2 Andrei Alexandrescu 2015-06-03 03:47:05 UTC
Was it on that particular page? What's your wikipedia user name?
Comment 3 Richard (Rikki) Andrew Cattermole 2015-06-03 03:54:32 UTC
I can't find any changes in the revision history either. Regarding D.

https://en.wikipedia.org/w/index.php?title=Generic_programming&action=history

Either an admin actually deleted those revisions or that page wasn't modified.
Comment 4 basile-z 2015-06-03 07:37:56 UTC
Deletion in History, look for:

 20:35, 16 August 2011‎ Peter.alexander.au

"Removed the 'Templates in D' section entirely as it had nothing to do with generic programming. What does compile time factorial and C API wrappers have to do with generic programming? Templates and generic programming are not synonyms."

The rationale for deletion is actually here:

https://en.wikipedia.org/wiki/Talk:Generic_programming#D

At the end:

"Does there have to be an exclamation point in factorial!(n-1)?"

I think that this should be considered otherwise any other author might see its paragraph on D deleted. The point is that the guy didn't get the exclamation mark is used to instantiate a template.
Comment 5 dennis.m.ritchie 2015-06-03 08:09:37 UTC
(In reply to bb.temp from comment #4)
> Deletion in History, look for:
> 
>  20:35, 16 August 2011‎ Peter.alexander.au
> 
> "Removed the 'Templates in D' section entirely as it had nothing to do with
> generic programming. What does compile time factorial and C API wrappers
> have to do with generic programming? Templates and generic programming are
> not synonyms."
> 
> The rationale for deletion is actually here:
> 
> https://en.wikipedia.org/wiki/Talk:Generic_programming#D
> 
> At the end:
> 
> "Does there have to be an exclamation point in factorial!(n-1)?"
> 
> I think that this should be considered otherwise any other author might see
> its paragraph on D deleted. The point is that the guy didn't get the
> exclamation mark is used to instantiate a template.

They want to see something new in generic programming, so show them the code generation mixins. If C++-programmers indicate "power" of its backward preprocessor: #define max(a, b) ((a) < (b) ? (b) : (a)), then why D-programmers can not describe the usefulness of mixins in generic programming.
Besides knocking the `static if` absolutely groundless.
Comment 7 Andrei Alexandrescu 2015-06-03 14:33:03 UTC
(In reply to Vladimir Panteleev from comment #6)
> https://en.wikipedia.org/wiki/Generic_programming#Templates_in_D

Thanks Vladimir!!
Comment 8 Jonathan M Davis 2015-06-03 17:50:40 UTC
Let's hope that it doesn't get deleted this time.