forked from lurk-lab/lurk-beta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor Ptr struct to generic with type Tag (lurk-lab#651)
- Refactored `Ptr` struct into a generic `GPtr` struct, introducing type parameter `T` and associating it with `Tag` interface. - Created `Ptr` and `ContPtr` types derived from `GPtr`. - Transferred pertinent predicate methods such as `is_nil`, `is_cons`, `is_atom`, `is_list`, `as_cons`, `as_list` to the new `GPtr<F, ExprTag>` implementation. - Transferred `ContPtr` struct and corresponding methods to `GPtr<F, ContTag>`. - No modifications made to `ExprTag` and associated enum elements in `tag.rs`. - Added `std::hash::Hash` trait to `Tag` interface in `tag.rs`.
- Loading branch information
1 parent
899c433
commit c678647
Showing
2 changed files
with
62 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters