3 ms·
And using "def" is actually considered better Scala style in situations like this, exactly because it is more flexible. You can override a "def" with a "val" bu
by trurl 12y ago
And using "def" is actually considered better Scala style in situations like this, exactly because it is more flexible. You can override a "def" with a "val" but not the other way around.