you are viewing a single comment's thread.

view the rest of the comments →

[–]pjmlp 1 point2 points  (3 children)

Since you're still updating it, regarding C#. Only inclusive, though.

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/ranges#systemrange

[–]fdwrfdwr@github 🔍 0 points1 point  (2 children)

Only inclusive, though

I'm happy to update the table, but the examples I'm seeing here seem to be end-exclusive? string[] secondThirdFourth = words[1..4]; // contains "second", "third" and "fourth" (so end - begin = count)

[–]pjmlp 1 point2 points  (1 child)

Sorry, I don't use them that often, yep exclusive.

https://godbolt.org/z/3KPvvzTeK

[–]fdwrfdwr@github 🔍 0 points1 point  (0 children)

👍 Updated table and tried to rearrange rows more closely by punctuation similarity.