trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
133 stars 44 forks source link

Improve variable related API #731

Closed vsbogd closed 1 month ago

vsbogd commented 2 months ago

Follow up #729. This PR contains two main parts:

  1. Remove Bindings and BindingsSet method variants which work with strings instead of variables. This is technical debt after introducing full functional Python API for the variable bindings.
  2. Add VariableAtom::parse_name() method to parse VariableAtom::name() method results into Rust and Python API. This is a technical debt after introducing unique variable instances.

New methods are used to fix DAS gate variable conversion logic.

@besSveta please check this change doesn't break sql_space.py logic. @angeloprobst FYI.