Consider optionally allowing named segments as evaluator parameters
- Lingua principale
- Rust
- Stelle
- 96
- Fork
- 39
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Now that we have made evaluators more general in terms of segments it can accept, it may be helpful to optionally allow named segments in parameters. For example, consider a trace with 5 segments (`segment_0`, `segment_1`, `segment_2`, `segment_3`, `segment_4`) and an evaluator that takes first and last segment.
Something like `ev evaluator([a, b], [], [], [], [c, d])` is probably prone to error. We should also allow users to do something like:
`ev evaluator(segment_0: [a, b], segment_4: [c, d])`.
This issue is not of high priority though.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Look at the evaluator parameter handling in the AIR-Script compiler, likely in the parser or semantic analysis modules. Understand how segments are currently passed and validated. The change involves extending the syntax to support named segment parameters like `segment_0: [a, b]`. Check existing tests for evaluator calls to see the current pattern and add new tests for the named syntax.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100