microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 171 forks source link

Ranges with exclusive end #36

Closed bettinaheim closed 4 years ago

bettinaheim commented 5 years ago

This issue has been create based on the issue originally filed by @Strilanc: https://github.com/microsoft/qsharp-compiler/issues/30

"My Q# programs are filled with unnecessary -1s because the slice a..b includes b instead of stopping at b-1. I recommend copying ruby and adding the alternative a...b to exclude b."

bettinaheim commented 5 years ago

Note that changes to the Q# language are subject to our language design process. At this point we are not ready for contributions implementing this feature yet. This issue will migrate to the appropriate repository in the near future and will be discussed there.

bettinaheim commented 4 years ago

closing this, since I believe this is largely addressed by IndexRange and open ended ranges.