Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for multi-dimensional arrays #13

Open
JimmyCushnie opened this issue Mar 30, 2019 · 4 comments
Open

support for multi-dimensional arrays #13

JimmyCushnie opened this issue Mar 30, 2019 · 4 comments
Labels
feature/enhancement New feature or request

Comments

@JimmyCushnie
Copy link
Owner

probably the best way to do this is by treating them as nested arrays. A 2d array is saved the same was as an array of arrays, a 3d array is saved the same way as an array of arrays of arrays, ect

@JimmyCushnie JimmyCushnie added the feature/enhancement New feature or request label Mar 30, 2019
@starikcetin
Copy link

starikcetin commented Oct 4, 2019

You know it would be super exciting if you saved them as actual tables if they are 2D arrays. Something like this:

        Col0      Col1
Row0    val00     val01
Row1    val10     val11

But again, it is hard to implement and probably hard to use as well.

@JimmyCushnie
Copy link
Owner Author

An interesting idea! Yeah, the biggest drawback I see is that it will be hard to use. SUCC files should be easy to write from scratch, with confidence that what you write won't have parsing errors. Perhaps it would be good to have this as an option without it being the default.

@starikcetin
Copy link

starikcetin commented Oct 4, 2019

To prevent (or more realistically speaking, reduce) parsing errors, we might search for a separator character instead of relying on whitespace. For example:

         Col0,      Col1
Row0,    val00,     val01
Row1,    val10,     val11

Notice the commas.

@JimmyCushnie
Copy link
Owner Author

Ah, that's clever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants