Replies: 13 comments
-
I always use files with a I don't think there's anything specific to the spec that says what your |
Beta Was this translation helpful? Give feedback.
-
I consider This specification describes a data format, and I guess you are right that nothing needs to change to just use this format in my own |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
That one could even serve for a migration path, if |
Beta Was this translation helpful? Give feedback.
-
@theonlygusti
Somewhat agreed, though a point to note is, I believe one difference between the todo.txt format and most other plaintext but structured files is that any plaintext file is literally a valid This is in contrast to most other structured plaintext files, e.g. a JSON file needs to conform to a very particular format, which most plaintext files do not. And so in that sense a With that said, I do like being able to easily distinguish files I intend to work with in the |
Beta Was this translation helpful? Give feedback.
-
the specification states that A non-standard file extension like |
Beta Was this translation helpful? Give feedback.
-
A "non-standard" i.e. specific-purpose extension like It also indicates what type of data is in the file (as any file extension is meant to do). For example And if you write your own tool for your own computer to handle Why can't this specification just define the .todo extension. I think an entire ecosystem could be built around it. |
Beta Was this translation helpful? Give feedback.
-
@theonlygusti What would be functionally different in programs implementing the Any program implementing the spec should already let you choose the file to operate on, and this could have any extension - There's nothing special about any particular extension, it's just another part of a file name, apart from as a heuristic to know how you might want to use the data in that file. |
Beta Was this translation helpful? Give feedback.
-
Why don't you save all your JSON files with a Why did JSON and Python define their own extensions? Why do you feel it is inappropriate for this specification to do so? |
Beta Was this translation helpful? Give feedback.
-
@theonlygusti I'm not necessarily saying I disagree with you, I'm just trying to establish what it would mean for the specification to actually recommend/require a particular file extension. E.g. using your examples, I imagine the key reason Python defines its own extension is to allow a smooth experience when importing other Python files, so For JSON, I don't think the spec does recommend any particular extension, or at least I can't see it here: http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf. Like the |
Beta Was this translation helpful? Give feedback.
-
I doubt that python has an extension requirement. The specification cannot guarantee that a *py file contains comprehensible data |
Beta Was this translation helpful? Give feedback.
-
You're right ig the spec doesn't need to (and perhaps shouldn't?) define the extension used. |
Beta Was this translation helpful? Give feedback.
-
Depends what you mean by requirement - while Python scripts can be written in a file with any extension, or none, you do have to jump through a lot of hoops if you want to use the |
Beta Was this translation helpful? Give feedback.
-
The whole specification should apply to
.todo
files.I envision
~/Music/piano.todo
,~/Music/guitar.todo
,~/MyProject/project.todo
Beta Was this translation helpful? Give feedback.
All reactions