KevinScript
KevinScript copied to clipboard
A programming language, inspired by Python and JavaScript.
``` >>> [i for i in 1]; 'items' ``` This should instead produce the same error message as when you do `for(i in 1){i;};`. E.g. `Can't iterate over type Integer...
If a list contains itself, trying to print it produces 40+ error messages, instead of something more sensible. Input: ``` >>> seq = [1,2,3]; >>> seq.append(seq); >>> print(seq); ``` Expected...
One of KS' goals is to make it possible to do anything with a single very large expression. So it would be nice to have a ternary expression so you...
Currently, `and` and `or` evaluate both operands, even if doing so is not necessary to calculate the result: ``` >>> True or 1/0 ... integer division or modulo by zero...
Consider the following program: ``` if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if (True){if...
Currently, only `"` can be used for string literals, ex. ``` "Hello, World!" ``` `'` should also be allowed, ex. ``` 'Hello, World!' ```