-
Notifications
You must be signed in to change notification settings - Fork 695
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
Mention consistency on the web as a factor in the text format #463
Conversation
I would suggest that a good place to start would just be refinements to the s-expression format. If we can find a pleasing set of adjustments to s-expressions, we can eventually just iterate towards that and then we still have One Format. I'm not sure whether that would ever be nice enough for people to be happy with it, though. |
I agree, s-expressions are a good starting point. The change in this pull is more as a longer-view goal (one of many) to try to reach, as opposed to where to start. In fact, I was going to start with the s-expression support in binaryen and work from there. But I did hope to be able to get to a place where it feels consistent with the web - too early to tell, of course. |
(Btw, one specific thing I like about s-expressions is that there is no ambiguity of operator precedence, and we do have potential conflicts here, e.g., operator precedence is not the same between JS and C, so that's a hard choice, but s-expressions might avoid it. But, hard to know before experimenting with concrete proposals, I think.) |
I'm not sure that the text format really needs to be close to the web's expectations as a design criteria. I think being non-alien does matter, but so does avoiding misleading syntax (e.g. the syntax is precise, I think it would be better to express the basic goals of the syntax, and then we can bikeshed preferences like curlies versus whitespace versus parens. WDYT? |
Sure, I agree that I'm basically just trying to say in this section that overall platform consistency is a nice thing to have, of course as one factor among many, and just when reasonable to do so. In other words, I agree that it makes sense to start by expressing the basic goals of the syntax, as you said, and I am saying that overall platform consistency should be one of those goals. It seems like an obvious goal, and I think we already imply it in the FAQ, but re-reading the FAQ and the Text Format document, I thought it might be nice to say it directly. We keep getting questions about view-source, and saying something like in this pull might help address people's concerns, I think. |
Gotcha, that does seem to make sense. I'd be less worried if we had a few guiding principles, and said something like "when things don't actually matter, the shed shall be painted Web-colored" (which I think is what you're going for). |
960f73f
to
149abe4
Compare
Yeah, you're saying it better than I did. I rewrote to something more along the lines of that. How does it look now? |
lgtm |
Merging with lgtm and no objections. |
Mention consistency on the web as a factor in the text format
Based on recent discussions, I think now might be a good time to start exploring and prototyping text formats, to get some experience before more organized discussions on that topic. I plan to do so myself soon. Thinking about how to get started, I think this addition to TextFormat.md is useful.