[m-dev.] But, then again, Re: Nice! bintree deconstruction

David Overton dmo at cs.mu.OZ.AU
Fri Feb 17 04:30:37 AEDT 2006


On Thu, Feb 16, 2006 at 12:09:03PM -0500, doug.auclair at logicaltypes.com wrote:
> On reflection the semideterministic approach of deconstruct is not
> ideal.  The representation approach keeps the entire process
> (externalization of the internal structure and this using that
> structure for, e.g., iteration) deterministic.  Is there a way to make
> deconstruct deterministic?

What's wrong with:

	( if deconstruct(...) then
		<code for handling node>
	else
		<code for handling empty tree>
	)

David
-- 
David Overton
WWW: http://www.overtons.id.au/
Mobile Phone (UK): +44 7799 344 322
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list