-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've often wanted the same thing. Perhaps it could be available for
every type?
class SomeClass {
def foo
def bar
}
class Blarg extends SomeClass.Api { ... }
or maybe apiOf[T], or contract[T]?
Are the latter something macros could accomplish?
> <eric.ko...@gmail.com <mailto:eric.ko...@gmail.com>>
On 02/13/2013 09:11 PM, John Sullivan wrote:
> Me too. I would like to be able to define an interface and a
> default implementation of that interface in a single pass. (As I
> mention in the paper.) Why not? Or some operation like:
>
> class FooImpl { // ... }
>
> trait Foo asImplementedBy FooImpl { // every public member of
> FooImpl becomes an abstract public member of this trait }
>
>
>
> On Wed, Feb 13, 2013 at 9:04 PM, Eric Kolotyluk
> wrote:> beyond the two seminal papers by Odersky and Bon←r.
>
> I would be fascinated to see if Scala has some solutions to the
> boilerplate problems you point out.
>
> Cheers, Eric
>
>
> On 2013-02-13 2:45 PM, John Sullivan wrote:
>
> Hi people! I hope this isn't too inappropriate for this group, but
> I've been using the "cake pattern" for dependency injection with
> Scala for the past couple years, and I wrote up my experiences
> using it. I hope there is some practical advice here that goes
>
> http://scabl.blogspot.com/__2013/02/cbdi.html
> <http://scabl.blogspot.com/2013/02/cbdi.html>> scala-user+unsubscribe@__googlegroups.com
>
> Best, John -- You received this message because you are subscribed
> to the Google Groups "scala-user" group. To unsubscribe from this
> group and stop receiving emails from it, send an email to
> <mailto:scala-user%2Bunsu...@googlegroups.com>. For more
> options, visit https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>> scala-user+unsubscribe@__googlegroups.com
>
>
> -- You received this message because you are subscribed to the
> Google Groups "scala-user" group. To unsubscribe from this group
> and stop receiving emails from it, send an email to
> <mailto:scala-user%2Bunsu...@googlegroups.com>. For more
> options, visit https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>-----BEGIN PGP SIGNATURE-----
>
>
> -- You received this message because you are subscribed to the
> Google Groups "scala-user" group. To unsubscribe from this group
> and stop receiving emails from it, send an email to
> scala-user+...@googlegroups.com. For more options, visit
> https://groups.google.com/groups/opt_out.
>
>
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAlEcXEkACgkQ0GFaTS4nYxs3ZQCeMarMBeP09VIFKtlcAbu6lPrj
i8YAn1BRd2UqOySUpyg2mr/QlpC2jSY2
=ZA7h
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.