Skip to content

Proposal: Inline comments for ternary and presence check operations #6

@Deftu

Description

@Deftu

Presence checks (only outputs if the condition is met):

/*?+ MC >= 1.19.2 ? val client = myClient ?*/

Ternary condition:

val client = /*? MC >= 1.16.5 ? */ currentVersionValue /* : otherVersionValue ?*/

These are small additions which would mostly only be useful for Mixin definitions, annotation parameters or smaller variables which may differ between versions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions