Generics Vote: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Please add your signature in one of two categories below (add a line "* \~\~\~~"). Look [[Generics proposals|here]] for examples. Please add small explanation if you vote for other. | |
| 2 | 2 | ||
| 3 | 3 | ### Vote for \<\> syntax | |
| 4 | 4 | ||
| 5 | 5 | - Bram 14:14, 9 Nov 2005 (CET) | |
| 6 | 6 | - Gadnio 18:15 28 Nov 2005 (GMT+2) | |
| 7 | 7 | - Wanderlan 15:26, 7 November 2006 (CET). See another example already implemented in Object Pascal at [Chrome Syntax](http://www.chromesville.com/articles/?id=%7BA1D08EE3-0D9E-4828-AFB3-B2C1E772186E%7D). Simple, Clean and Elegant. With out unnecessary reserved words as **Generic** and **Specialize**. Perhaps Delphi follow this syntax. An another option use '()' instead '\<\>' for more Pascal compliance (No C-ism), similar to [Schema Types](http://www.gnu-pascal.de/gpc/Schema-Types.html#Schema-Types) (Generics Pascalism) in Extended Pascal (ISO-10206) and GNU Pascal.\ | |
| 8 | 8 | \ | |
| 9 | 9 | FPC's generics are actually more than the simply generics implemented by .Net languages. FPC's implementation is more like C++ templates which are much more powerful though they has been limited to avoid the ugliest C++ styled template hacking --FPK 20:25, 7 November 2006 (CET)\ | |
| 10 | 10 | \ | |
| 11 | 11 | - dr_evil 05:25 30 Dec 2006 (GMT+1) | |
| 12 | 12 | - Implementation 11:08, 01 Nov 2010 (CET) | |
| 13 | 13 | ||
| 14 | 14 | ### Vote for adding generic keyword | |
| 15 | 15 | ||
| 16 | 16 | - Neli 13:48, 9 Nov 2005 (CET) | |
| 17 | 17 | - Almindor 14:38, 9 Nov 2005 (CET) | |
| 18 | 18 | - MvC 14:38, 9 Nov 2005 (CET) Note: done by Almindor per request | |
| 19 | 19 | - Marcov 14:48, 9 Nov 2005 (CET). "template" might be better | |
| 20 | 20 | - Msmat 15:29, 9 Nov 2005 (CET) | |
| 21 | 21 | - Loesje 16:05 9 Nov 2005 (CET) Note: done by Almindor per request | |
| 22 | 22 | - Bartek 16:28, 9 Nov 2005 (CET) | |
| 23 | 23 | - Gpremuda 23:42, 9 Nov 2005 (CET) | |
| 24 | 24 | - Sekel 03:05, 10 Nov 2005 (CET) | |
| 25 | 25 | - Jeff P. | |
| 26 | 26 | - Michalis 19:55, 10 Nov 2005 (CET) | |
| 27 | 27 | - Giulio 18:48, 7 November 2006 (CET) | |
| 28 | 28 | - Kbowes 06:11, 13 December 2008 (CET) Sounds good, but I'm thinking we should use it as a modifier: | |
| 29 | 29 | ||
| 30 | 30 | ` type`\ | |
| 31 | 31 | ` TGenericClass = generic class of x`\ | |
| 32 | 32 | ` ..`\ | |
| 33 | 33 | ` end;`\ | |
| 34 | 34 | ` TGenericRec = generic record of x`\ | |
| 35 | 35 | ` ...`\ | |
| 36 | 36 | ` end;` | |
| 37 | 37 | ||
| 38 | - | ||
| 39 | - | ||
| 40 | 38 | I agree with above that we really shouldn't be copying C++'s cryptic use of \<\> for them. | |
| 41 | 39 | ||
| 42 | 40 | - Kai Burghardt ([[User talk:Kai Burghardt|talk]]) 15:40, 8 November 2018 (CET) | |
| 43 | 41 | ||
| 44 | 42 | ### Vote for radically different syntax | |
| 45 | 43 | ||
| 46 | 44 | - PublicJoke 15:08, 10 Nov 2005 (CET) Note: it's better to extend 'unit' and 'uses' clauses | |
| 47 | 45 | ||
| 48 | 46 | ## See also | |
| 49 | 47 | ||
| 50 | 48 | - [[Generics]] | |
| 51 | 49 | ||
| 52 | 50 | --- | |
| 53 | 51 | *From the Free Pascal wiki, page "Generics Vote", as it stood on 2018-11-08 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 54 | 52 | Category: FPC | |
| 55 | 53 | Category: Historical |
