[m-dev.] cc_multi or det ?

Holger Krug hkrug at rationalizer.com
Tue Aug 7 02:21:08 AEST 2001


> Ralph's other suggestion -- of having the lexer token constructors just
> return some special token value which gets passed up to the parser,
> rather than throwing an exception -- side-steps the whole issue and
> sounds like a better approach to me.

Ralph asked me three times ("please, please, please"), to agree with
this, so I have to. 

As a Java programmer I started to like exception, because they clearly
separate expected and unusual behavior. As Mercury programmer I have
to use them very cautious, because catching them is 'cc_multi'. So one
further question:

why don't we use `cc_multi' anywhere where we otherwise would use
`det' ? Are there performance issues or is it only because of a
mismatch between declarative and operational semantics ?


-- 
Holger Krug
hkrug at rationalizer.com
--------------------------------------------------------------------------
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