News for hackers. Stuff that matters.
Re:The KCL Programming Language for Data Validation by t0suj4 on Monday January 09, 2023 @02:45PM (#34314997)
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.

Re:The KCL Programming Language for Data Validation by peefy on Monday January 09, 2023 @09:49PM (#34319853)
Thank 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.