Execute pipes line by line in fsi
- Vorherrschende Sprache
- F#
- Sterne
- 4.3k
- Forks
- 876
- Ø Merge
- 5 T. 9 Std.
- Gemergte PRs (30 T.)
- 153
Beschreibung
**Is your feature request related to a problem? Please describe.**
When writing pipelines in fsi, they have to be executed as a single unit:
```
1 values
2 |> fun1
3 |> fun2
```
You need to select lines 1 to 3 to execute it, but you cannot execute line 1, then 2, then 3.
**Describe the solution you'd like**
It would give more flexibility to execute lines one by one.
When a line starts with |>, it would interpret it as
```
it |> fun1
```
Executing the previous script line by line would be interpreted as:
```
let it = values
let it = it |> fun1
let it = it |> fun2
```
**Describe alternatives you've considered**
Continue to select multiple lines, but it's easy to forget and get an error at execution.
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Beispiel in F# Interactive (fsi) zu reproduzieren, indem du die Pipeline zunächst Zeile für Zeile und anschließend als ausgewählten Block ausführst. Verfolge, wie Eingabezeilen geparst und ausgewertet werden, und überprüfe, dass sich jede |>‑Zeile wie im Issue beschrieben verhält, während die bestehende mehrzeilige Ausführung weiterhin funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- fsharp
- Bereich
- cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100