Skip to main content

Module names

Module names 

Source
Expand description

Identifiers generators derive from Bern’s snake_case names. Each target escapes the results that are keywords of its own language.

Functions§

camel
last_action → lastAction.
component
The view of a component in generated Swift and Kotlin: empty → AppView_empty.
pascal
main_window → MainWindow. A hyphen separates words too.
session_type
The class of an application session (a #[session] struct) in generated Swift and Kotlin: URL → App_URL.
session_variable
The variable through which a view of generated Swift and Kotlin reads a session: Window → session_Window.
value_type
The name an application value type (a #[value] enum or record) has in generated Swift and Kotlin: Layout → App_Layout.