J
John Gagon
If you could add anything you wanted to the java language, what would
it be?
I'd predict some would say the non-imperative stuff ie: closures or the
LISP like abilities to work almost purely functionally or do macros.
Some might get smart as say "everything dot NET (dot NYET) has".
There is one thing that would be a nice compiler check that would
prevent some
stupid coding organizationally and that might be some better
information hiding
and this is rather original and with all such things, they may not be
the best ideas and so that's why I bounce it here:
Example:
(public*) package com.mycomp.mysoft.persistence
ignores
com.mycomp.mysoft.services,
com.mycomp.mysoft.web;
private package com.mycomp.mysoft.business
knows
com.mycomp.mysoft.persistence,
com.mycomp.mysoft.services;
* the default
This could have been a java swing example just as easily. Anyhow,
pardon me since it's been ten years but IIRC, C++ had friend and other
features that seemed to work like this but perhaps that is more a class
or type-grained feature.
Perhaps the reverse could also be asked and that is, what would you
remove from the java language if you could or what is the biggest
mistake. (Originality being more interesting here IMHO). i.e.: I know
the way that the way package and protected work in terms of visibility
is often criticized.
Thank you (in advance) for any corrections to conceptual mishaps here I
might have too.
John Gagon
Struggling Software Engineer
it be?
I'd predict some would say the non-imperative stuff ie: closures or the
LISP like abilities to work almost purely functionally or do macros.
Some might get smart as say "everything dot NET (dot NYET) has".
There is one thing that would be a nice compiler check that would
prevent some
stupid coding organizationally and that might be some better
information hiding
and this is rather original and with all such things, they may not be
the best ideas and so that's why I bounce it here:
Example:
(public*) package com.mycomp.mysoft.persistence
ignores
com.mycomp.mysoft.services,
com.mycomp.mysoft.web;
private package com.mycomp.mysoft.business
knows
com.mycomp.mysoft.persistence,
com.mycomp.mysoft.services;
* the default
This could have been a java swing example just as easily. Anyhow,
pardon me since it's been ten years but IIRC, C++ had friend and other
features that seemed to work like this but perhaps that is more a class
or type-grained feature.
Perhaps the reverse could also be asked and that is, what would you
remove from the java language if you could or what is the biggest
mistake. (Originality being more interesting here IMHO). i.e.: I know
the way that the way package and protected work in terms of visibility
is often criticized.
Thank you (in advance) for any corrections to conceptual mishaps here I
might have too.
John Gagon
Struggling Software Engineer