Is it recommended to write DSLs for C bindings or it can cause problems with low-level operations like pointers, memory management, etc? The GTK sample from KN repository, for example, uses functions like
gtk_window_set_title
and
gtk_button_new_with_label
which is not similar to how JVM code is written.
o
olonho
05/12/2018, 12:56 PM
For K/N bindings were generated automatically, so they represent GTK C APIs, but nothing prevents you to write higher level bindings, and IIRC there are bindings loke that: https://github.com/kropp/kotlin-native-gtk
l
Lucas
05/12/2018, 8:47 PM
Thanks for the clarification, @olonho. I'll reach the repository owner for more information.