-
Notifications
You must be signed in to change notification settings - Fork 1
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
properties.ston or properties.json ? #20
Comments
Musashi, The sort answer is that What is described on the wiki is our latest thinking snd moving forward we want to use STON ... if is compatible with JSON and will give us the flexibility to include serialized objects in the future ... There is no need to preserve any of the artifacts in the repository (like old .json files).. readers should be able to determine what format the repository is in by looking at the various property files. We are dealing with code repositories here and we have to be able to continue to read old repository formats while being allowed to move forward as our needs evolve and even as an individual dialect's needs evolve. So STIG will create artifacts for VW packages that do not have an analog in Pharo packages and that is okay as long as those artifacts are in separate files/directories ... The primary directive is to allow the sharing of the source code files and common class properties between dialects. The current thinking is that each dialect would have it's own branch (Xtream and FileTree are examples) but perhaps the only truly shared artifacts will be the .st files and basic file structure ... It's not a perfect world, but I think it is the best we can hope for:) The spec is still evolving a bit (see Issue #17 and Issue #19)... Hope this hslps clarify things. Dale |
OK. I understood the direction. I've written a simple FileMan script for batch solution. But I also hope FileTree provides somewhat transparent compatibility for the existing projects. I think many users (including me) are already using FileTree. And running the batch to each project would be tiresome. |
Masashi, I do intend to upgrade FileTree to support the new formt ... I've just not had the time, but I need to squeeze some time in soon ... now that there is additional interest, I'll bump the priority:) Dale ----- Original Message ----- |
Cypress spec says that "Properties of repository, package and class are stored in file named 'properties.ston'". However, implementations other than STIG use 'properties.json', so it causes interchangeability problems. (For example, I could not load a FileTree-derived project tree from STIG).
If saved properties are just JSON objects (the spec says "for portability it must be restricted to the JSON subset", I think just using 'properties.json' is simpler.
If we should use 'properties.ston' from now on, I think some implementation guideline for migration is needed.
For example:
Personally I like ston format, but are there any specific usecase for storing complex objects in properties file? If not, I think just sticking to 'properties.json' can avoid migration problems.
The text was updated successfully, but these errors were encountered: