title: Kotlin mandatory explicit annotation parameter names? @Foo(>>bar<< = 42)
body: <h2>How to make Kotlin Annotation parameter's name explicit declaration mandatory?</h2>
  <pre><code>// Having an annotation class Foo
  annotation class Foo(val bar: String)
  
  
  // This declaration should work
  // we explicitly provided parameter name
  @Foo(bar = &quot;42&quot;)
  class X
  
  // This should fail
  // we didn't explicitly provide a name
  @Foo(&quot;42&quot;)
  class Y 
  </code></pre>
  <p>As far as I understand it's not possible to do with stock Kotlin Compiler and/or IDE? Am I right?</p>
  <p>If we're thinking about a custom implementation:</p>
  <ul>
  <li>Is there an existing solution in Kotlin ecosystem?</li>
  <li>Is it possible to implement a guard with a Kotlin Compiler Plugin / KSP?</li>
  </ul>