-
Notifications
You must be signed in to change notification settings - Fork 89
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
Refactoring Ideas #95
Comments
How is the library returning
Maybe I'm missing something, but I don't get why this would need to be a trait. The
The
❤️ ❤️ ❤️ this looks amazing. |
@TedDriggs Thx for the feedback. :-)
We depend on
Yeah, the visibility thing is not optimal. But my primary motivation would be better error messages
Ok, I'll have a look.
Note: I'm not yet 100% sold on |
PS: I also like to pull in as little dependencies as possible and we already depend on |
I've gotten the tests working on my fork of your branch, but I don't know how to push that to the one you sent me a PR for. I'll investigate |
My initial experiments with
|
I can easily drop the
That's not a pattern I'd thought of using, it should definitely be possible to support something like that though. At the moment it has special-cased support for literal types and everything else goes through
I've only taken a brief look at the It seems that if
Well, how do you parse a
Any reason not to? |
I submitted dtolnay/syn#131 today to address just that. I've started parallel work on |
Closing this in the interest of ticket hygiene; we've merged a significant simplification of options parsing, and the other items can/should be ticketed on their own. |
Here are some refactoring ideas for the codebase:
no_std
implementation (turnno_std
attribute into a feature flag?)Validate
traitfoo_enabled
flags from derive_builder_core objects. Instead justdon't emit the objects. ;-) I.e. change
options.as_foo -> Foo<'a>
tooptions.as_foo -> Option<Foo<'a>>
?TryFrom
delegates to the build function. In the future I would like toreverse that. But let's wait until
TryFrom
is stable.Simplify processing of structured MetaItems dtolnay/syn#25
Maybe later:
cc @TedDriggs
The text was updated successfully, but these errors were encountered: