Comment

Comment by ramses0

I really wish there was "regex for prolog", ie: when pounding away in JavaScript be able to do:

    let options = { foo: 1, bar: 2, ... }
    ```prolog
    $X :- fromJson( options )
    Solution = Optimize( $X )
    ...
    ```
...like writing a whole web app in prolog sounds terrifying (same as writing a whole web app in regex), but recognizing and having some excellent interop between "modes" is obviously useful for regex, sometimes sql is supported in other languages, but even with the usefulness of prolog outcomes, there's almost never been that convenient "this section is logic" in the same way that we've universally adopted "regex" for string matching.
parent ramses0 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton