commandlineparser / commandlineparser/commandline

Is there a reason to forbid to have sequence with zero range?

未關閉
#824 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
4.8k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

In our project we would like to have the ability to have IEnumerable Option with zero range. However, it`s not possible even though Min = 0 is set. There is the guard (GuardAgainstSequenceWithZeroRange) which checks that.

Is there a reason to forbid to have a sequence with zero range? Why don`t we allow to have a sequence with zero range if the Min property is set?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先定位 GuardAgainstSequenceWithZeroRange 以及呼叫它的 IEnumerable Option 處理邏輯。閱讀範圍為零時 Min 的使用方式,然後確定預期行為及其驗收標準;只有在該行為達成共識並由測試涵蓋後,issue 才算完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

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

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