Skip to content

Strings and atoms #2

@triska

Description

@triska

An example in the README:

py_run_simple_string('x = 10').

The predicate name says "string", yet 'x = 10' is an atom.

In addition, the README mentions that Python strings are converted to Prolog atoms.

Would it be good to convert Python strings to Prolog strings (lists of characters)? One advantage would be that strings can be very conveniently processed with DCGs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions