Revision as of 22:40, 12 February 2024 editHog Farm (talk | contribs)Autopatrolled, Administrators55,497 edits close GAR Misplaced Pages:Good article reassessment/PHP/1 as delist (GANReviewTool)← Previous edit |
Latest revision as of 17:01, 8 November 2024 edit undoPeaceray (talk | contribs)Autopatrolled, Administrators94,223 editsm Rollback edit(s) by 1.37.88.45 (talk): test edits (RW 16.1)Tags: RW Rollback |
(9 intermediate revisions by 7 users not shown) |
Line 21: |
Line 21: |
|
|currentstatus = DGA |
|
|currentstatus = DGA |
|
}} |
|
}} |
|
{{WikiProject banner shell|class=|vital=yes|1= |
|
{{WikiProject banner shell|class=C|vital=yes|1= |
|
{{WikiProject Computing|importance=high|free-software=yes|free-software-importance=High|software=yes}} |
|
{{WikiProject Computing|importance=High|free-software=yes|free-software-importance=High|software=yes}} |
|
{{WikiProject Computer science|importance=high}} |
|
{{WikiProject Computer science|importance=high}} |
|
{{WikiProject Internet|importance=high}} |
|
{{WikiProject Internet|importance=high}} |
|
{{WikiProject Software|importance=mid}} |
|
{{WikiProject Software|importance=mid}} |
|
{{WikiProject Spoken Misplaced Pages|En-PHP.ogg|462166234}} |
|
{{WikiProject Spoken Misplaced Pages}} |
|
}} |
|
}} |
|
|
|
|
{{Merged-from|Visibility of PHP properties and methods|08:41, July 28, 2010}} |
|
{{Merged-from|Visibility of PHP properties and methods|08:41, July 28, 2010}} |
|
{{Merged-from|PHP Data Objects|date=July 15, 2014}} |
|
{{Merged-from|PHP Data Objects|date=July 15, 2014}} |
Line 41: |
Line 40: |
|
}} |
|
}} |
|
{{archives|search=yes|bot=MiszaBot I|age=100}} |
|
{{archives|search=yes|bot=MiszaBot I|age=100}} |
|
|
|
|
== Using Type Declaration instead of Type Hints == |
|
|
|
|
|
As my change has been reverted it seems appropriate to discuss the matter. |
|
|
|
|
|
The PHP documentations refers to them as Type declaration, see: https://www.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration, and the original RFC introducing scalar types, uses the word "declaration", see: https://wiki.php.net/rfc/scalar_type_hints_v5 |
|
|
Although it is true that the PHP 5 documentation referred to them as "hints", and that the "Object Typehint" RFC is named as such but for all intent and purposes it is a type declaration. |
|
|
|
|
|
Moreover, the word "declaration" is used in other places correctly instead of "hint", see: |
|
|
|
|
|
{{quote|text=PHP 7 also included new language features. Most notably, it introduces return type ''declarations'' for functions which complement the existing parameter type ''declarations'', and support for the scalar types (integer, float, string, and boolean) in parameter and return type ''declarations''.}} |
|
|
|
|
|
{{quote|text=Unusually for a dynamically typed language, PHP supports type ''declarations'' on function parameters, which are enforced at runtime. This has been supported for classes and interfaces since PHP 5.0, for arrays since PHP 5.1, for "callables" since PHP 5.4, and scalar (integer, float, string and boolean) types since PHP 7.0. PHP 7.0 also has type ''declarations'' for function return types, expressed by placing the type name after the list of parameters, preceded by a colon. For example, the getAdder function from the earlier example could be annotated with types like so in PHP 7:}} |
|
|
|
|
|
{{quote|text=By default, scalar type ''declarations'' follow weak typing principles.}} |
|
|
|
|
|
(Emphasis mine) |
|
|
|
|
|
As I'm new to contributing to Misplaced Pages, I don't know what to do about the following comment from the revert commit |
|
|
{{quote|text="typehint" is the commonly used term in the community.}} |
|
|
|
|
|
As sure it is referred to that but it is not accurate, and my understanding is that Misplaced Pages articles should be accurate. |
|
|
|
|
|
Can someone more experienced clarify? |
|
|
|
|
|
== Security == |
|
|
Graphics processing is a rapidly developing field, so what was 'current' even only recently could be outdated very quickly. Additionally, describing GPU capability by monetary cost isn't particularly descriptive, even if one assumes USD pricing. <!-- Template:Unsigned IP --><small class="autosigned">— Preceding ] comment added by ] (]) 04:19, 27 March 2023 (UTC)</small> <!--Autosigned by SineBot--> |
|
|
|
|
|
== throws keyword == |
|
|
|
|
|
The example of the <code>throws</code> keyword does not include the <code>throws</code> keyword in it. Is this even a real keyword? The docs at php.net have nothing about it. ] (]) 18:33, 4 January 2024 (UTC) |
|
|
|
|
|
|
==GA Reassessment== |
|
==GA Reassessment== |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.