-
Notifications
You must be signed in to change notification settings - Fork 172
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
Implement Cloneable
in org.asciidoctor.Options
#1279
Comments
I don't think it is a good idea to clone an Options object. |
Hey @robertpanzer, What would you think about removing the underlying |
I am still reluctant to do that. |
I also thought the same way as @Marfien: collect the state passed to Being forced to create your own abstraction is very inconvenient and somehow defeats the purpose of having a convenient Java API for the underlying Ruby AsciiDoc API, don't you think? |
I think this needs clarification. Even if
I agree, but since the underlying issue of mutability remains, I don't think any change in Builder will suffice. If anything I'd take the radical approach to remove Builders 🪓 |
What do you think about the approach of making a copy of the |
Hello there.
I recently encountered multiple scenatios where I needed an
org.asciidoctor.Options
instance to be (almost) the same as the original. Unfortunately, the only way of doing this is to use the internal/deprecated methods involving the underlying map.Is there any intended way of doing this? Otherwise, I'd be happy to open a PR ;)
Kind Regards
The text was updated successfully, but these errors were encountered: