The Artima Developer Community
Sponsored Link

Weblogs Forum
The Autoproxy Plugin - Part I

18 replies on 2 pages. Most recent reply: Sep 23, 2010 12:17 AM by chris jennings

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 18 replies on 2 pages [ « | 1 2 ]
James Watson

Posts: 2024
Nickname: watson
Registered: Sep, 2005

Re: The Autoproxy Plugin - Part I Posted: Nov 30, 2009 11:21 AM
Reply to this message Reply
Advertisement
> While programmers do use proxy that way, it's incorrect,
> at least prescriptively. Maybe programmers have been
> doing it long enough that we can act like it's a word.
> Delegate is certainly a transitive verb of the sort you
> u want in both real life and programmerland: "B delegates
> to member."

If I must accept 'impacted' as an adjective for things other than stool and molars, you must accept 'proxy' as a verb.

Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: The Autoproxy Plugin - Part I Posted: Dec 1, 2009 1:53 AM
Reply to this message Reply
> What's funny about this answer is that proxy is not a
> (transitive) verb, and delegate is.

What's funny is that the relative merits of transitive and intransitive verbs is being queried whilst the word "with" makes it to the top of a list of verbs without comment.

Sean Landis

Posts: 129
Nickname: seanl
Registered: Mar, 2002

Re: The Autoproxy Plugin - Part I Posted: Dec 1, 2009 6:29 AM
Reply to this message Reply
A quick search of a few US and UK dictionaries all list delegate as both a noun and a verb. I prefer delegate as I think proxy, although correct in the presented context, seems to be more commonly used in distributed system patterns. Delegate, on the other hand, seems heavily biased in pattern language speak, toward the example.

chris jennings

Posts: 1
Nickname: bozmoz
Registered: Sep, 2010

Re: The Autoproxy Plugin - Part I Posted: Sep 23, 2010 12:17 AM
Reply to this message Reply
I tried this in scala 2.8.0 REPL...
<pre class="literal-block">
trait A {
def foo() = println("a.foo")
def bar() = println("a.bar")
def baz() = println("a.baz")
}

class B {
def bar() = println("b.bar")
}

val b = new B with A
</pre>

Got an error because B's bar does not have an 'override' clause. Maybe it's just the REPL -- I'm still learning scala -- but this worked for me...
<pre class="literal-block">
trait A {
def foo() = println("a.foo")
def bar() = println("a.bar")
def baz() = println("a.baz")
}

val b = new B with A {
override bar() = println("b.bar")
}
</pre>

Flat View: This topic has 18 replies on 2 pages [ « | 1  2 ]
Topic: JavaOne 2010: Article Roundup Previous Topic   Next Topic Topic: Library or Framework?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use