Skip to content
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

Provide a more declarative way to implement components #11

Open
holgerbrandl opened this issue Jan 17, 2021 · 0 comments
Open

Provide a more declarative way to implement components #11

holgerbrandl opened this issue Jan 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@holgerbrandl
Copy link
Owner

To create a custom component, currently, the user has to

val c = object : Component(){
    override fun process() = sequence { 
        hold(1)
    }
}

But it would be super-cool if she could just do something like

val c = object : Component(){
    hold(1)
}

However, it seems impossible to implement this feature because the underlying building would require multiple receivers (SeqeneceScope and this@Component) for functioning. This is not yet possible with kotlin, so this ticket is blocked by https://youtrack.jetbrains.com/issue/KT-10468.

@holgerbrandl holgerbrandl added the help wanted Extra attention is needed label Jan 17, 2021
@holgerbrandl holgerbrandl added enhancement New feature or request and removed help wanted Extra attention is needed labels Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant