scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

Document atts library

Open jgarte opened this issue 4 months ago • 3 comments

This is an issue to better document the atts library:

https://github.com/mthom/scryer-prolog/blob/master/src/lib/atts.pl

What is it about? Why does it exist?

jgarte avatar Aug 09 '25 19:08 jgarte

Yes, I agree this needs documentation.

It's an implementation of "attributed variables". You probably don't want to use them directly.

@triska's writeup on attributed variables: https://www.metalevel.at/prolog/attributedvariables SWI's documentation: https://www.swi-prolog.org/pldoc/man?section=attvar Sicstus's documentation: https://sicstus.sics.se/sicstus/docs/latest4/html/sicstus.html/lib_002datts.html#lib_002datts

rotu avatar Aug 12 '25 19:08 rotu

I have a Flying Roll I'm writing on Scryer's attributed variables. I don't know when it'll be ready to publish.

mthom avatar Aug 13 '25 02:08 mthom

In case anyone is interested in such a feature, I would much prefer first having a discussion about this topic. For instance, what is the relation to meta-structures mentioned in the Prolog II manual?

triska avatar Aug 15 '25 15:08 triska