4 ms·
I see a problem there with the pythonic range() function. I suggest to create syntax that can express closed, partially closed and open intervals. And make it a
by t0suj4 4y ago
I see a problem there with the pythonic range() function. I suggest to create syntax that can express closed, partially closed and open intervals. And make it always requiring two arguments.
As it is now, people have to know the quirks of python to understand what this schema wants to say. The meaning should be clear on first look.
- peefy 4y agoThank you for your suggestion. At first, we expected to make an SRE-friendly language and made enhancements in configuration and policy writing (try to be close to python and shell in use, and use some pythonic built-in functions such as range). However, this does bring additional learning costs to some users who are unfamiliar with python's usage. We will try to eliminate some of python's triks in the future to make the syntax and semantics of KCL clearer.