[m-users.] Building a serialiser with an additional state

Volker Wysk post at volker-wysk.de
Mon May 10 23:27:43 AEST 2021


Am Sonntag, den 09.05.2021, 13:15 +1000 schrieb Peter Wang:
> I can safely say on behalf of the Mercury developers that we STRONGLY
> recommend the use of state variable syntax instead of DCGs. DCG syntax
> is only supported because it was inherited from Prolog, before state
> variable syntax was invented.

You've convinced me. I'm using state variables now, for my serialiser.

For my parser (another component of my project), I'm done using DCGs. I find
the DCG syntax clear, no problem with that.

Regards,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20210510/8d38d57c/attachment.sig>


More information about the users mailing list