fix: interpret empty true-expr of conditional as error#3581
fix: interpret empty true-expr of conditional as error#3581josdejong merged 4 commits intojosdejong:developfrom
Conversation
|
Thanks Glen! I didn't remember this support for an implict start of a range |
|
Ah, I get it again: when ranges are used inside an index, the start and/or end is optional, so you can enter something like I think it was never intended to allow ranges used outside of an index to omit the start or end. Right now something like |
I would just leave it. |
|
In fact, here's one: If you go to the mathjs REPL right now, you have: I do not see any reason the last one should not work, completing the analogy between the first and third. Should I file an issue for that, or just leave it as a little under-the-covers foible of mathjs? |
I think the logic here is that a range like |
I agree. That's the only place that it's supported right now. But I don't see any logic for not supporting it anywhere else it makes perfect sense, such as |
Resolves #3578.