Ben Chuanlong Du's Blog

It is never too late to learn.

Issues in Scala

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

2.12

  1. Avoid using view of collections.

2.11

  1. Iterator ++ non lazy, might cause stack overflow issues. This issue has been fixed in 2.12.

  2. Stream.filterNot, not lazy, might cause stack overflow issues. Stream.filter is good. This isssue has been fixed in 2.12.

  3. Avoid using view of collections. Iterator is a better alternative most of the time.

Comments