This entry is the second draft of my property proposal,
i have tried to gather all the ideas proposed since
my first post about properties.
Why do we need a property syntax in Java ?
If you have not followed the different blogs,
i recommend you to first read
properties in Java by Richard Blair
and Properties are design features by Cay Horstmann.
Declare a property
There is...
The Kitchen Sink Language (or ksl)
is open here : ksl.dev.java.net,
so i hope that the next version of my prototype
will be the ksl trunk.
Before trying to commit compiler patches that introduce
local variable type inference or properties to the ksl trunk,
i think i will write a small patch that enable the use
of local keywords.
Local keywords
What is a local keyword ? A local...
Since my last post,
Cay Horstmann
has recalled that properties are intended for tools
and
Hans Muller
bid up
by saying that property syntax is useless
without a way to define bound properties.
Interceptors and bound properties
What Hans want is some kind of interceptor.
An interceptor is an object or a method that can trap access
to a property. In Java, these objects are...
Among the questions about my
property proposal and its implementation.
One can be answered easily.
Why don't provide property change support ?
Because there are several ways to implement a property change support
depending on what you want.
I've try to categorize them, conbinations are possible:
Listener and event
can be at least the following couple:...
Happy new year everyone.
Since my last post, i've done some homeworks :),
and i'm please to present you a new version of the
prototype java compiler which includes property support.
First, why properties ?, we have already fields and any IDE
have a menu item that can generate getters and setters, so why do,
we need properties ?
Why do we write getter and setter ?
The...