https://kotlinlang.org logo
Title
m

Marc Knaup

01/08/2019, 11:04 AM
Hey guys, is there a way to disable parameter name hints using an annotation so that I can write a DSL which doesn’t show any of these hint?
🙁 1
🇳🇴 2
c

Czar

01/08/2019, 6:33 PM
visibility of the hints is left at user's discretion and rightly so, I believe. E.g. I don't like seeing them all the time, but when I need them I want to see each and every one. There is a configurable shortcut to toggle them on and off which is very useful.
m

Marc Knaup

01/09/2019, 8:18 AM
In some scenarios it doesn't add any value but instead breaks the simplicity of a well-designed DSL which in the end makes it less readable.
c

Czar

01/09/2019, 9:08 AM
I agree that sometimes hints make code less readable, subjectively I even think that's the case most of the times, that's I usually have them disabled, but as a user of any library or DSL, if I enable hints, I really want to see hints, all of them, regardless of their aesthetics.
a

aarjav

01/09/2019, 5:16 PM
There probably won't be anything for this beyond comments like the
//noinspect
since it is an ide level setting
So maybe #intellij may be more helpful? Idk