From f8cea259b920f75322fd4c30e822cf5b81c495ee Mon Sep 17 00:00:00 2001 From: Kai Schmidt Date: Tue, 19 Nov 2024 15:00:03 -0800 Subject: [PATCH] deprecate signature and stringify modifiers --- changelog.md | 3 ++- site/primitives.json | 6 ++++-- src/primitive/mod.rs | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 219253fdd..215fa2841 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/site/primitives.json b/site/primitives.json index 6ef0312d8..16a643405 100644 --- a/site/primitives.json +++ b/site/primitives.json @@ -1189,7 +1189,8 @@ "modifier_args": 1, "class": "Comptime", "description": "Get the signature of a function", - "experimental": true + "experimental": true, + "deprecated": true }, "sine": { "glyph": "∿", @@ -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": "-", diff --git a/src/primitive/mod.rs b/src/primitive/mod.rs index 88bda197f..dde4d164c 100644 --- a/src/primitive/mod.rs +++ b/src/primitive/mod.rs @@ -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, }) }