Talk:Q2407

From Wikidata
Jump to navigation Jump to search

Autodescription — C++ (Q2407)

description: general-purpose programming language
Useful links:
See also


C++ should not be "subclass of" "programming language" (only "instance of") Flxrdl (talk) 21:03, 3 January 2021 (UTC)[reply]


^Ok, done. I edited it.

Fadirra (talk) 03:06, 14 January 2021 (UTC)[reply]

@Flxrdl: how would you resolve warning messages "C++ should have a statement subclass of" (e.g. see C++03 (Q5005847))? Mwtoews (talk) 01:20, 15 January 2021 (UTC)[reply]
This is debatable, all variants have their downsides… Obviously, if you want to be able to claim things like GNU Compiler Collection (Q178940)supports programming language (P3985)C++03 (Q5005847), you need C++03 (Q5005847) to be an instance of a programming language (which it is, really). Also, you should somehow signal that C++03 (Q5005847) is a kind of C++ (Q2407), right? Which could obviously be done as C++03 (Q5005847)instance of (P31)C++ (Q2407), right (currently, it is done using subclass of (P279), which is strange… and probably wrong)? But for that to work, C++ (Q2407) must be a class of programming languages (so, C++ (Q2407)subclass of (P279)programming language (Q9143)). But as you also want to be able to state things like Microsoft Windows (Q1406)programmed in (P277)C++ (Q2407), you want it to also be an instance of programming languages… So, I guess while a bit strange and not ideal, you should have this item both an instance of and a subclass of programming language. --Mormegil (talk) 16:59, 15 January 2021 (UTC)[reply]
@Mormegil: Thanks for the explanation. I have to admit that I had not thought that far when making the original comment to change it. I guess this is a bigger question of how to model versions of programming languages. Looking at Python (Q28865) you got Python 2 (Q99513286)edition or translation of (P629)Python (Q28865), Python 3 (Q31205855)modified version of (P5059)Python (Q28865) and also Python 3 (Q31205855)subclass of (P279)Python (Q28865). ECMAScript (Q259138) is another example of using edition or translation of (P629). The ECMAScript case is probably the closes to C++ as the different versions are also standards (ie. ECMA and ISO) Flxrdl (talk) 18:17, 19 January 2021 (UTC)[reply]