[HN Gopher] Show HN: The GraphQL API for WordPress is transpiled...
___________________________________________________________________
Show HN: The GraphQL API for WordPress is transpiled from PHP 8.0
to 7.1
Author : leoloso
Score : 18 points
Date : 2021-04-10 16:01 UTC (7 hours ago)
(HTM) web link (graphql-api.com)
(TXT) w3m dump (graphql-api.com)
| brian_herman wrote:
| Nice job!
| hvdijk wrote:
| For the null-safe operator: I've not looked at PHP in years, but
| is that transpilation really correct? That is, does the original
| code really call getSchemaDefinitionResolver twice like the
| transpiled version does?
| deergomoo wrote:
| I don't believe so, no. So for impure or non-idempotent
| methods, the two versions would not be equivalent.
|
| Edit: it is indeed not the same https://3v4l.org/UNmAg
___________________________________________________________________
(page generated 2021-04-10 23:01 UTC)