Sign in Join
Wiki copytemporary

Generics Vote: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Generics Vote

OldNewLine
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+
3+### Vote for \<\> syntax
4+
5+- Bram 14:14, 9 Nov 2005 (CET)
6+- Gadnio 18:15 28 Nov 2005 (GMT+2)
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+ \
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+ \
11+- dr_evil 05:25 30 Dec 2006 (GMT+1)
12+- Implementation 11:08, 01 Nov 2010 (CET)
13+
14+### Vote for adding generic keyword
15+
16+- Neli 13:48, 9 Nov 2005 (CET)
17+- Almindor 14:38, 9 Nov 2005 (CET)
18+- MvC 14:38, 9 Nov 2005 (CET) Note: done by Almindor per request
19+- Marcov 14:48, 9 Nov 2005 (CET). "template" might be better
20+- Msmat 15:29, 9 Nov 2005 (CET)
21+- Loesje 16:05 9 Nov 2005 (CET) Note: done by Almindor per request
22+- Bartek 16:28, 9 Nov 2005 (CET)
23+- Gpremuda 23:42, 9 Nov 2005 (CET)
24+- Sekel 03:05, 10 Nov 2005 (CET)
25+- Jeff P.
26+- Michalis 19:55, 10 Nov 2005 (CET)
27+- Giulio 18:48, 7 November 2006 (CET)
28+- Kbowes 06:11, 13 December 2008 (CET) Sounds good, but I'm thinking we should use it as a modifier:
29+
30+` type`\
31+`   TGenericClass = generic class of x`\
32+`     ..`\
33+`   end;`\
34+`   TGenericRec = generic record of x`\
35+`      ...`\
36+`   end;`
37+
38+</syntaxhighlight>
39+
40+I agree with above that we really shouldn't be copying C++'s cryptic use of \<\> for them.
41+
42+- Kai Burghardt ([[User talk:Kai Burghardt|talk]]) 15:40, 8 November 2018 (CET)
43+
44+### Vote for radically different syntax
45+
46+- PublicJoke 15:08, 10 Nov 2005 (CET) Note: it's better to extend 'unit' and 'uses' clauses
47+
48+## See also
49+
50+- [[Generics]]
51+
52+---
53+*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+Category: FPC
55+Category: Historical

Back to history