Skip to content

Commit 14c8c0d

Browse files
Make conversions transitive and make getitem more comprehensive
1 parent a0893db commit 14c8c0d

File tree

6 files changed

+219
-233
lines changed

6 files changed

+219
-233
lines changed

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ _This project uses semantic versioning. Before 1.0.0, this means that every brea
2121
- Upgraded `egg-smol` dependency ([changes](https://github.com/saulshanabrook/egg-smol/compare/353c4387640019bd2066991ee0488dc6d5c54168...2ac80cb1162c61baef295d8e6d00351bfe84883f))
2222

2323
- Add support for functions which mutates their args, like `__setitem__` [#35](https://github.com/metadsl/egglog-python/pull/35)
24+
- Makes conversions transitive
2425

2526
## 0.5.1 (2023-07-18)
2627

docs/reference/egglog-translation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ Math(2) + 30 + "x"
255255
Math(2) + Math(i64(30)) + Math.var(String("x"))
256256
```
257257

258+
Regstering a conversion from A to B will also register all transitively reachable conversions from A to B.
259+
258260
### Declarations
259261

260262
In egglog, the `(declare ...)` command is syntactic sugar for a nullary function. In Python, these can be declare either as class variables or with the toplevel `egraph.constant` function:

0 commit comments

Comments
 (0)