Skip to content

Commit

Permalink
deprecate signature and stringify modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 19, 2024
1 parent cd7b399 commit f8cea25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ This version is not yet released. If you are reading this on the website, then t
- Sorting is a very common operation, and it's useful to have such simple access to it
- Stabilize [`last ⊣`](https://uiua.org/docs/last)
- Getting the last row is a very common operation
- Add experimental inline macros
- Add experimental [inline macros](https://www.uiua.org/docs/experimental#inline-macros)
- Deprecate the experimental `stringify` and `signature` modifiers in favor of inline code macros
- Add experimental [`binary`](https://uiua.org/docs/binary) function, which encodes and decodes arrays into a compact binary representation
- Remove the previously deprecated experimental `coordinate ⟔` function
- Remove the previously deprecated experimental `struct` modifier
Expand Down
6 changes: 4 additions & 2 deletions site/primitives.json
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@
"modifier_args": 1,
"class": "Comptime",
"description": "Get the signature of a function",
"experimental": true
"experimental": true,
"deprecated": true
},
"sine": {
"glyph": "",
Expand Down Expand Up @@ -1231,7 +1232,8 @@
"modifier_args": 1,
"class": "Comptime",
"description": "Convert code into a string instead of compiling it",
"experimental": true
"experimental": true,
"deprecated": true
},
"subtract": {
"glyph": "-",
Expand Down
2 changes: 2 additions & 0 deletions src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ impl Primitive {
Choose => format!("use {Tuples}{Lt} instead"),
Permute => format!("use {Tuples}{Ne} instead"),
Triangle => format!("use {Tuples} instead"),
Sig => "use (repr⋅⊢)^! instead".into(),
Stringify => "use (◇repr⊢)^! instead".into(),
_ => return None,
})
}
Expand Down

0 comments on commit f8cea25

Please sign in to comment.