Findings:
1) Far more people prefer inclusive than I would have thought. I guess this is thanks to Ruby/Perl?
2) It's still highly ambiguous and so probably shouldn't choose to use this syntax at all...
Conversation
How do folks feel about a..=b and a..<b for inclusive and exclusive respectively? :troll face: / serious question
7
2
Replying to
I like Swift's `a..b` and `a..<b`. Rust got it round the wrong way.
If you want to use the equals sign then I only accept `a=..=b` and `a=..<b`, but now it looks like I've got weird smileys everywhere.
I would love to see a gradual migration in Rust to Swift's approach over multiple editions (via your proposal), but I doubt there's any energy to spare for that.
1
Why do you feel so strongly that inclusive is the right default/unadorned syntax?
1
Show replies

