Add smart cast to val properties

It force me to double the amount of variables in my class. If smart casting can solve it (as casting should) why shouldn’t we have it? It’s a val param anyways.

There are workaround. Notice I mentioned your solution in my original post. It doesn’t mean we need to do it every single time.
In my class’s functions I’ll have to type the undrscore param and not the regular. I dont like this boilerplate and I believe it can easily be fixed

1 Like