News for hackers. Stuff that matters.
Re:What's New in Lua 5.4 by pansa2 on Thursday July 16, 2020 @03:54AM (#23856794)
> Nim almost gets there: (x .. y) is end-inclusive, and (x ..< y) is end-exclusive - but the syntax still exhibits a preference.

Swift is similar, using `...` and `..<`. Rust uses an alternative convention, `..=` and `..`.

Would you prefer to see `..=` and `..<` so that inclusivity/exclusivity is always explicit?

Re:What's New in Lua 5.4 by int_19h on Thursday July 16, 2020 @04:23AM (#23856934)
Yep, pretty much. I'm a strong proponent of "explicit is better than implicit" in all cases where there's no default that's obviously preferable, and this is is one of those cases - that different languages picked different defaults is all the evidence I need.