O
opalpa
Yes... I cannot see the point in distinction between
Something java 1.5 tries to hide some with "boxing" -- automatic
conversion between int and Integer and similarly for other primitive to
corresponding java.lang classes. I dunno for sure, perhaps original
int was in place because making Integer instance for ints was
intolebrly slow on then existing generally available technology?
You can provide routines which modify carefully considered comprising
pieces, in the original example you can use Color's and JButton's
settors. There is a problem if originally there was no instance but
that's not replacing right?
Woebegone's ColorButton example is an enapsulation that I'd use in file
scope. For further reaching functions I'd first research alternate
designs because I've never used this pattern outside a file scope.
Java indeed limits expressions and I believe that these limits have
lead to me using others code more frequently then I could C++ because I
can read and start using Java code faster.
Here is extension of the idea: String, BigDecimal and many other
libraries are immutable, not only can the called function not evicerate
an instance but it cannot even modify a particular represented value in
anyway. This quality makes it easier to contemplate properties of
extensive systems.
primitive types and objects,
Something java 1.5 tries to hide some with "boxing" -- automatic
conversion between int and Integer and similarly for other primitive to
corresponding java.lang classes. I dunno for sure, perhaps original
int was in place because making Integer instance for ints was
intolebrly slow on then existing generally available technology?
and I can see some inconsistency in the fact that you can modify an
object passed to the function, but you cannot replace the object
completely...
You can provide routines which modify carefully considered comprising
pieces, in the original example you can use Color's and JButton's
settors. There is a problem if originally there was no instance but
that's not replacing right?
Woebegone's ColorButton example is an enapsulation that I'd use in file
scope. For further reaching functions I'd first research alternate
designs because I've never used this pattern outside a file scope.
Java indeed limits expressions and I believe that these limits have
lead to me using others code more frequently then I could C++ because I
can read and start using Java code faster.
but... well... I see this as a part of the game... I like Java
anyway .
Here is extension of the idea: String, BigDecimal and many other
libraries are immutable, not only can the called function not evicerate
an instance but it cannot even modify a particular represented value in
anyway. This quality makes it easier to contemplate properties of
extensive systems.