boostorg / boostorg/hana

pipe operator as in ranges TS

Open
#438 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

It would be nice to have the same syntax as the ranges TS.

For example, instead of
```
boost::hana::fold(
boost::hana::transform(
boost::hana::values(map)
,func)
,boost::hana::union_)
```
I would write
```
map|boost::hana::values
|boost::hana::transform(func)
|boost::hana::fold(boost::hana::union_)
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Hana's existing transform, values, fold, and union_ APIs alongside the ranges TS pipe syntax referenced in the issue. Determine whether the proposed operator can be specified consistently for these operations; done means an agreed design and documented behavior, with compatibility and test scope identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.