Add inclusive range operator
Atila Neves
atila.neves at gmail.com
Thu Jul 31 08:39:59 UTC 2025
On Friday, 25 July 2025 at 18:41:12 UTC, Brother Bill wrote:
> We have range 10..15 which has elements: 10, 11, 12, 13, 14 but
> not 15
>
> Recommend operator ..= as in 10..=15 or operator ... as in
> 10...15
> This would produce inclusive range of elements: 10, 11, 12, 13,
> 14, 15
>
> These operators are in other languages.
>
> I am sure that I am not the first to recommend this.
It's not a bad idea, it's just that it's a nice-to-have that I
particularly don't find that important.
More information about the dip.ideas
mailing list