Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39623

Re: Java Overloading rules confusion

From Wayne <wayne@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java Overloading rules confusion
Date 2020-10-09 22:51 -0400
Organization A noiseless patient Spider
Message-ID <rlr7ju$qcg$3@dont-email.me> (permalink)
References <rloivp$k46$1@dont-email.me> <rlpqcl$gk8$1@gioia.aioe.org>

Show all headers | View raw


On 10/9/2020 9:59 AM, Arne Vajhøj wrote:
 > ...
> But I would like to point out the obvious: the first code
> may compile, but it is still bad code.
> 
> Code where the reader needs to remember some subtle
> language rules to understand why the code does what
> it does is bad code.
> 
> Arne

I agree.  I was trying to post a minimal example that shows
the issue.  It is indeed poor code for any real project.

-- 
Wayne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Java Overloading rules confusion Wayne <wayne@nospam.invalid> - 2020-10-08 22:47 -0400
  Re: Java Overloading rules confusion Marcel Mueller <news.5.maazl@spamgourmet.org> - 2020-10-09 09:01 +0200
  Re: Java Overloading rules confusion Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-10-09 09:21 -0400
    Re: Java Overloading rules confusion Wayne <wayne@nospam.invalid> - 2020-10-09 22:51 -0400
  Re: Java Overloading rules confusion Arne Vajhøj <arne@vajhoej.dk> - 2020-10-09 09:59 -0400
    Re: Java Overloading rules confusion Wayne <wayne@nospam.invalid> - 2020-10-09 22:51 -0400

csiph-web