-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up outdated primitive operator names (#1992)
* clean up outdated primitive operator names PR #1937 recently renamed many primitive operators. It missed some instances of the previous names, though. In particular: - error messages - comments - an unused function "apply_contract" in core/src/term/mod.rs While most of these names were only made obsolete in #1937, some of them have been incorrect for longer, eg "%array_access%" in core/src/term/pattern/compile.rs and "recordMap" in core/src/term/mod.rs. I caught as many as I could find. However it's hard to be sure I got all of them, given that some of the previous names are very general terms like "value", "fields", "length", and "map". The full list of renames I identifiend are as follows, formatted as "<old name> <new name>". First, the easy cases: chng_pol label/flip_polarity record_map record/map str_trim string/trim str_chars string/chars str_uppercase string/uppercase str_lowercase string/lowercase str_length string/length str_from to_string num_from number/from_string enum_from enum/from_string str_is_match string/is_match str_find string/find str_find_all string/find_all record_empty_with_tail record/empty_with_tail label_push_diag label/push_diag enum_unwrap_variant enum/unwrap_variant enum_is_variant enum/is_variant enum_get_tag enum/get_tag apply_contract contract/apply array_lazy_app_ctr contract/array_lazy_app record_lazy_app_ctr contract/record_lazy_app elem_at array/at str_split string/split str_contains string/contains record_insert record/insert record_insert_with_opts record/insert_with_opts record_remove record/remove record_remove_with_opts record/remove_with_opts label_with_message label/with_message label_with_notes label/with_notes label_append_note label/append_note str_replace string/replace str_replace_regex string/replace_regex str_substr string/substr record_seal_tail record/seal_tail record_unseal_tail record/unseal_tail array_slice array/slice Then the harder cases: polarity label/polarity go_dom label/go_dom go_codom label/go_codom go_array label/go_array go_dict label/go_dict embed enum/embed map array/map generate array/generate length array/length fields record/fields fields_with_opts record/fields_with_opts values record/values go_field label/go_field has_field record/has_field has_field_with_opts record/has_field_with_opts field_is_defined record/field_is_defined field_is_defined_with_opts record/field_is_defined_with_opts lookup_type_variable label/lookup_type_variable insert_type_variable label/insert_type_variable Finally, two cases that I didn't understand and seem to be unused: rec_force_op op rec_force rec_default_op op rec_default * address code review comments
- Loading branch information
1 parent
58ef79d
commit 090984d
Showing
7 changed files
with
171 additions
and
131 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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