Skip to content
Discussion options

You must be logged in to vote

Hi! That's a good question. Doing this type of thing is definitely what a fallback to new-function-based builder is for, and I can't find an easier way to do that with the current set of attributes API provided in bon. I understand the inconvenience of having to switch to that, but I also want to keep the attributes API as small and simple as possible. Ideally, an attribute should exist only if there is no other way to achieve the same using existing APIs, or if the desired behaviour emerges far too often, which would justify having a shorthand attribute syntax for it.

So if it's a really rare occurrence, I'd recommend just going for a new-function-based builder

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kriskras99
Comment options

Answer selected by Kriskras99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants