Skip to content

Error while evaluating a function for :table should exclude a row or show a special error row, not kill the whole table #398

@byorgey

Description

@byorgey

Here is the current result when asking for a table for mod:

Disco> :table mod
Error: division by zero

That is, when making a table for mod, we happen to try something where the second input is zero, which causes a division by zero error. That's fine, but this should only cause us to discard that particular row, or even show a special error row, rather than discard the entire table. So, something like this:

Disco> :table mod
0  0  Error
0  1  0
1  0  Error
0  2  0
1  1  0
2  0  Error
0  3  0
1  2  1
2  1  0
3  0  Error
...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions