Preview features for JavaFX
Pedro Duque Vieira
pedro.duquevieira at gmail.com
Wed Feb 7 13:51:57 UTC 2024
Hi,
Just adding my 2 cents to the discussion.
I think there's a precedent to this that the JavaFX team was using back in
JavaFX 8 and before it. It wasn't for preview features, but it had a
somewhat similar purpose.
There was an "@treatAsPrivate" annotation. This annotation was used in
methods that were only meant to be used internally by JavaFX itself. They
were an implementation detail. They could be used by programmers, but they
had a risk of being removed or their behavior later being changed entirely.
That annotation seemed to be enough. Some developers used these methods
(including myself), and I don't remember any issues with this. Developers
were well aware these methods could get removed and some of them have
actually been removed.
(I think they were also marked with the "@Deprecated" annotation so that
you had an extra warning from the IDE, and the @treatAsPrivate annotation
also hid them from the javadocs).
I like the idea of preview features. Some features need to be tested by
programmers for a long time before we are sure they can be set in stone.
Like others have said this could also allow features to come out quicker.
Thanks! Kind regards,
--
Pedro Duque Vieira - https://www.pixelduke.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Sem
vírus.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240207/149d634e/attachment-0001.htm>
More information about the openjfx-dev
mailing list