Skip to content

Add modify syntax#222

Merged
armanbilge merged 1 commit intomainfrom
pr/i204
Apr 17, 2023
Merged

Add modify syntax#222
armanbilge merged 1 commit intomainfrom
pr/i204

Conversation

@armanbilge
Copy link
Copy Markdown
Owner

Closes #204.

This allows to use the declarative DSL to modify an existing element e.g. elem.modify(cls := "foo").

I tried to add this syntax on Modifier itself, but it seems that the compiler is unable to disambiguate. Might be fixed by scala/scala3#17050 but I'm not sure if it's the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An easy way to "amend" an already constructed element

1 participant