Join Slack
Powered by
Which way is preferred to use custom component in ...
# tornadofx
s
snrostov
11/04/2017, 11:15 AM
Which way is preferred to use custom component in DSL? Operator
+=
or create custom builder function?
t
thomasnield
11/04/2017, 3:52 PM
@snrostov
either works, but I like creating my own DSLs
s
snrostov
11/04/2017, 7:01 PM
@thomasnield
, I have some experiment with alternative approach to DSL. The main idea is that all components are fist class citizens in DSL, so no builder functions required. Some examples here:
https://htmlpreview.github.io/?https://raw.githubusercontent.com/snrostov/ui-dsl/master/index.html#hello-widgets
This examples is for React, but library is cross platform: for now react, javafx, and I'm working with native rendering pipeline built on top of skia. Rendering pipeline is mainly inspired from
https://flutter.io/
4
Views
Open in Slack
Previous
Next