SWI-Prolog object notation #13
vasily-kartashov
started this conversation in
Ideas
Replies: 1 comment
-
Mmh no, supporting the dicts requires changes at several levels, including the parser but also the core. It's an interesting feature, so I'll definitely have a look. However there are poor chances I'll do that in the short term. Il you only need the square brackets notation without tag and without a fancy way to access keys by dot, you bal exploit blocks (ie terms among square brackets such as Otherwise, have a look to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SWI-Prolog has dicts https://www.swi-prolog.org/pldoc/man?section=bidicts which could help to solve the problem of transparently mapping entities from and to Java (I looked at the 2p-kt presentation, so that's why I stress the word transparently here).
I'd like to be able to write something as simple as this:
Is it possible to support the same syntax without changing the parser?
Beta Was this translation helpful? Give feedback.
All reactions