Re:REST and GraphQL really aren't that different
by worldsayshi on Wednesday January 30, 2019 @01:57PM
(#19038066)
Not sure if it answers your whole question but it means that the value of this.get gets assigned to all the other variables.
[ Parent
| on HN ]
Re:REST and GraphQL really aren't that different
by pighive on Wednesday January 30, 2019 @02:03PM
(#19038139)
Makes sense, but why do we have to do it this way, assigning just get func to all other verbs (functions), cos this is an example?
Re:REST and GraphQL really aren't that different
by dentemple on Wednesday January 30, 2019 @02:13PM
(#19038221)
It turns six lines into one line.
It looks impressive in software interviews, but I don't really see the use in it for production code. Not every JS dev immediately knows what's going on with this syntax.