Re:An embeddable Prolog scripting language for Go
by vvern on Thursday January 27, 2022 @08:59AM
(#30100619)
What does the interop with go look like? Is there a story for writing prolog queries over go data structures and iterating the results. If this could be made ergonomic, itβd be very cool.
[ Parent
| on HN ]
Re:An embeddable Prolog scripting language for Go
by zimpenfish on Thursday January 27, 2022 @09:40AM
(#30101096)
From the given example, basically the same as `database/sql` - you `Exec` or `Query` a Prolog doodah, iterate over the solutions with `Next`, and `Scan` the results into your structs.