Would be great if there was a modifier to make a v...
# announcements
e
Would be great if there was a modifier to make a variable have public getter but private setter... So, instead of this:
var a = 2
private set
we could write something like
local var a = 2
b
valocal
🧌
🧌 2
Or even better yet,
valoco
Meaning “crazy val”
r
🚂
I'll admit that Kotlin's syntax is a bit clunkier than C# properties; however, I think explicitly declaring the get/set visibility is clearer.
Copy code
public int a { get; private set; }
h
You could make a live template… (Copy this and paste into live template list)
👌 1