Skip to main content

All Questions

2 votes
3 answers
2k views

Is it possible to declare a val before assignment/initialization in Scala?

In general, can you declare a val in scala before assigning it a value? If not, why not? An example where this might be useful (in my case at least) is that I want to declare a val which will be ...
Michael Blankenship's user avatar