From 428642afa331fafaffa90880fc9352d6fb366a84 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 12 May 2016 17:32:59 +0200 Subject: Explain specific changes in later strawman proposals ... relative to CollectionStrawman1. --- src/strawman/collections/CollectionStrawMan4.scala | 2 ++ src/strawman/collections/CollectionStrawMan5.scala | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'src/strawman') diff --git a/src/strawman/collections/CollectionStrawMan4.scala b/src/strawman/collections/CollectionStrawMan4.scala index 874f67a2d..ec20849ff 100644 --- a/src/strawman/collections/CollectionStrawMan4.scala +++ b/src/strawman/collections/CollectionStrawMan4.scala @@ -12,6 +12,8 @@ import annotation.tailrec * strengths and weaknesses of different collection architectures. * * For a test file, see tests/run/CollectionTests.scala. + * + * Strawman4 is like strawman1, but built over views instead of by-name iterators */ object CollectionStrawMan4 { diff --git a/src/strawman/collections/CollectionStrawMan5.scala b/src/strawman/collections/CollectionStrawMan5.scala index 1a89d9659..5d04c2c98 100644 --- a/src/strawman/collections/CollectionStrawMan5.scala +++ b/src/strawman/collections/CollectionStrawMan5.scala @@ -12,6 +12,15 @@ import annotation.tailrec * strengths and weaknesses of different collection architectures. * * For a test file, see tests/run/CollectionTests.scala. + * + * Strawman5 is like strawman4, but using inheritance through ...Like traits + * instead of decorators. + * + * Advantage: Much easier to specialize. See partition for strict (buildable) collections + * or drop for Lists. + * + * Disadvantage: More "weird" types in base traits; some awkwardness with + * @uncheckedVariance. */ object CollectionStrawMan5 { -- cgit v1.2.3