generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Redesign Kotlin verb "interface" #803
Comments
alecthomas
changed the title
Redesign Kotlin verb "interface" (@worstell)
Redesign Kotlin verb "interface"
Feb 7, 2024
Open
worstell
added a commit
that referenced
this issue
Feb 10, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 10, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 10, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 10, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 11, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 11, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions. this change also introduces the `Module` file annotation in Kotlin, which will be used to declare an FTL module as the package of the annotated file.
worstell
added a commit
that referenced
this issue
Feb 11, 2024
fixes #803 with this change, verbs in kotlin are defined as top-level functions rather than class member functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently verbs have to be in a class and there can be multiple. This is a bit weird given how we want verbs to be seen as stateless single units.
Proposal is to make verbs top-level functions, rather than member functions of a module class. Modules will be declared with a file-level annotation, like in Go. The module name will be derived from the package name (as is the case presently).
The text was updated successfully, but these errors were encountered: