casmn.blogg.se

Kotlin static
Kotlin static




kotlin static

I mean like I initially went "huh? What? Why?", but figured there was a good reason. I was quite surprised to see that Kotlin simply doesn't support the concept of static properties. Plus, like, I need to know about Kotlin anyhow, so makes sense.

kotlin static

My C# is even worse than my Kotlin (if you can believe that), so I decided to check Kotlin. I wanted to look at how another language handles the same, and the only languages I personally know anything about that has accessors defined on the properties themselves are C# and Kotlin (that's not to say there aren't others, undoubtedly it's very prevalent those're the two I know about).

kotlin static

Whilst writing today's previous article (" CFML: invokeImplicitAccessor on CFCs"), I noted that CFML does not support implicit accessor methods on static properties.






Kotlin static