-
Notifications
You must be signed in to change notification settings - Fork 12
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
Creating WCON-structured data in memory is fiddly #135
Comments
I don't think the current WCON interface has an abstract interface to in-memory movement data. I think that would be useful to have, with language-specific implementations. I believe for now we have an I/O interface in that we get some language specific data structure, from which users are expected to manipulate using language features (e.g. arrays etc ...) . |
I have a draft in Scala up at https://github.com/Ichoran/tracker-commons/tree/scala-simplified The Readme gives an example of usage: https://github.com/Ichoran/tracker-commons/tree/scala-simplified/src/scala The main source file is at https://github.com/Ichoran/tracker-commons/blob/scala-simplified/src/scala/src/main/scala/Create.scala The basic idea is as follows, in Scala. You create the pieces you need by saying Languages without type-level guarantees should probably provide a validate method to check everything and/or a conditional creation method that returns some sort of optional construct that is empty if the conditions were not met. Here's a complete minimal example from my command-line during testing:
|
I propose that every language that we support provide a basic set of routines to help the user create WCON data. These routines would include:
I am not sure to what extent these things already exist, but for the library to be useful we need to be able to create and write data, not just read it.
The text was updated successfully, but these errors were encountered: