linksplatform / Ranges

LinksPlatform's Platform.Ranges Class Library
https://linksplatform.github.io/Ranges
The Unlicense
4 stars 1 forks source link

Maybe change string view for Ranges #60

Closed uselessgoddess closed 3 years ago

uselessgoddess commented 3 years ago

We can use Rust-style (no python) for string view

Range(1, 10) // ==> [1..10] instead of [1, 10]

Also [x, y] is pair-like array view

Konard commented 3 years ago

Give a more detailed example of what do you suggest?

uselessgoddess commented 3 years ago
std::cout << Range{1, 10}; // [1..10]
uselessgoddess commented 3 years ago

Instead [1, 10]

Konard commented 3 years ago

I use [1, 10] because this Range have exactly the same meaning as interval from mathematics.

uselessgoddess commented 3 years ago

Also mathematics style image

Konard commented 3 years ago

Well, I didn't see [a .. b] notation when I was learning in school. We have to make research that will show which of these options is more common.

uselessgoddess commented 3 years ago

So many people think that my style is better image

Konard commented 3 years ago

So many people think that my style is better image

That is not enough.