fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fenfire-dev] PEG: pure node functions


From: Tuomas Lukka
Subject: [Fenfire-dev] PEG: pure node functions
Date: Sun, 17 Aug 2003 17:01:18 +0300
User-agent: Mutt/1.5.4i

=============================================================
PEG purenodefunction--tjl: 
=============================================================

:Author:   Tuomas J. Lukka
:Last-Modified: $Date: 2003/08/17 13:52:46 $
:Revision: $Revision: 1.1 $
:Status:   Incomplete

The NodeFunction framework is misused in several places
in Fenfire, as there are lots of node functions for
which the invariants do not hold.

This PEG suggests a way forwards to both not require too
great changes to current code but allow pure functional
semantics to be specified and applied.

Issues
======

Changes
=======

Add a new interface, ``PureNodeFunction`` as a subinterface
of NodeFunction.

It defines no methods but explicitly defines the invariant.

CachedNodeFunction shall only accept PureNodeFunctions.

PureNodeFunction-implementing classes SHALL BE IMMUTABLE -
all members will be final. Changing members will work
by creating a new instance with a changed member.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]