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

Custom tag support #78

Open
cubuspl42 opened this issue Apr 1, 2020 · 2 comments
Open

Custom tag support #78

cubuspl42 opened this issue Apr 1, 2020 · 2 comments
Labels
type-enhancement A request for a change that isn't a bug

Comments

@cubuspl42
Copy link

Currently, in the public API tags aren't exposed at all. Is there any reason for that? This makes custom tags (like !Foo) completely disappear.

@klausries
Copy link

A full support of YAML would be a major plus for Dart in many applications.
Consider a static web site generator as an application.

@jonasfj jonasfj added the type-enhancement A request for a change that isn't a bug label Sep 21, 2021
@jonasfj
Copy link
Member

jonasfj commented Sep 21, 2021

Feel free to up-vote, but I think the current set of features supports the uses cases the Dart team have for parsing configuration files.

If you want advanced custom syntax, then why not a fully fledged parser for a domain specific language using something like package:petitparser. If you search for "yaml bad" or look at compatibility results from yaml-test-suite, then there are plenty of good reasons not to use YAML for DSLs with complex syntax. I would suggest writing a parser instead.

If you really want custom tag support I think it might be best implemented in a community package. Adding such features here are liable to cause more bugs, and it's not clear that this is something we need in Dart tooling or that most users of package:yaml needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants