Proposal: Selector/Select Expression

Bob Myers rtm at gol.com
Sun Jun 23 07:02:17 UTC 2019


Let me correct one thing.

This proposal has nothing to do with ```|>```.
>

What I meant to say is that the two proposals are not interdependent or
related, but since ```.p``` is to be a function retrieving the value of
property ```p```, it can be used like any other function in a pipline, and
iso n fact plays quite nicely with pipelines.

```
const bedroomSize = house
  |> getRooms
  |> .bedroom // pick bedroom property from rooms object
  |> calcRoomSize;
```

Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190623/3dd436c2/attachment.html>


More information about the es-discuss mailing list