I think the group might find this open source project on java.net
interesting.
https://pec.dev.java.net/nonav/frontpage.html
A Pattern Enforcing Compiler™ (PEC™) For Java™
A pattern enforcing compiler (PEC) allows classes to be marked as
having a given design pattern, e.g. Singleton. The PEC then checks
that the marked class conforms to the pattern and issues an error
message if it does not, thus the pattern checking is much like type
checking. The PECs downloadable from this site require no new syntax
and therefore they can be used with existing: editors, IDEs, pretty
printers, etc. The downloadable PECs are extensible and therefore as
well as using the supplied patterns a programmer can write their own
patterns and have the PEC enforce these
I thought the group might find it interesting.
A Pattern Enforcing Compiler™ (PEC™) For Java™
"A pattern enforcing compiler (PEC) allows classes to be marked as
having a given design pattern, e.g. Singleton. The PEC then checks
that the marked class conforms to the pattern and issues an error
message if it does not, thus the pattern checking is much like type
checking. The PECs downloadable from this site require no new syntax
and therefore they can be used with existing: editors, IDEs, pretty
printers, etc. The downloadable PECs are extensible and therefore as
well as using the supplied patterns a programmer can write their own
patterns and have the PEC enforce these"
Ilya
On Apr 24, 5:41 pm, "Ilya Sterin" <ster...@gmail.com> wrote:
> Yeah, sounds useful when learning patterns, though I doubt it can be
> used in a large application. Patterns fortunately are abstract
> solutions to a related set of problems, though a single pattern might
> have hundreds of different reifications. It seems like the compiler
> forces you into some standard or common pattern reification, with
> their own naming conventions, etc... So again, I'm not bashing it,
> but rather saying that it might be useful for learning.
>
> Ilya
>
> On 4/24/07, David McKinnon <davidmck...@gmail.com> wrote:
>
>
>
> > I stumbled across this open source project while onwww.java.net
>
> > I thought the group might find it interesting.
>
> > A Pattern Enforcing Compiler™ (PEC™) For Java™
>
> > "A pattern enforcing compiler (PEC) allows classes to be marked as
> > having a given design pattern, e.g. Singleton. The PEC then checks
> > that the marked class conforms to the pattern and issues an error
> > message if it does not, thus the pattern checking is much like type
> > checking. The PECs downloadable from this site require no new syntax
> > and therefore they can be used with existing: editors, IDEs, pretty
> > printers, etc. The downloadable PECs are extensible and therefore as
> > well as using the supplied patterns a programmer can write their own
> > patterns and have the PEC enforce these"
>
> >https://pec.dev.java.net/
>
> >https://pec.dev.java.net/nonav/frontpage.html- Hide quoted text -
>
> - Show quoted text -