0xMiden / 0xMiden/air-script

Consider optionally allowing named segments as evaluator parameters

未關閉
#268 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
96
分支
39
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。