Skip to content

Not allowing for mixed content in attributes makes for excessive syntax #11907

@KasparOrange

Description

@KasparOrange

This: Style=@($"background: {(shift.Person?.Id == User.Id ? Theme.Palette.Primary.Value : Theme.Palette.PrimaryDarken)};") looks ugly is confusing and JavaScript developer laughing about us. I know that's polemic, but what I am trying to allude to, is the need to use a lot of special characters and scopes to make this seemingly easy and usual task work.

Is this something that is my fault for not understanding how to use the framework correctly? Then how am I intended to do this correctly?

Is this just something hard to understand for the compiler? Then are there plans to make the developer experience better in this regard?

Also, I am new to creating issues, I know this does not fit the outline of the template issue, but I just didn't know how to fit what I wanted to say in that format. If this is not the right place for this information, I am sorry. :)

Metadata

Metadata

Assignees

Labels

area-compilerUmbrella for all compiler issuesfeature requestLarge improvement request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions