From a50aeb602225ff2a24da5d28db9628c31ea3c82b Mon Sep 17 00:00:00 2001 From: Ryan Vandersmith Date: Fri, 20 Dec 2024 13:54:13 -0700 Subject: [PATCH] Rename 'Debug.nyi()' to 'Debug.todo()' (#53) --- src/Array.mo | 2 +- src/Bool.mo | 2 +- src/Debug.mo | 4 ++-- src/Float.mo | 2 +- src/Hash.mo | 2 +- src/Int.mo | 2 +- src/InternetComputer.mo | 2 +- src/Iter.mo | 2 +- src/List.mo | 2 +- src/Map.mo | 2 +- src/Nat.mo | 2 +- src/Principal.mo | 2 +- src/Queue.mo | 2 +- src/Result.mo | 2 +- src/Set.mo | 2 +- src/Stack.mo | 2 +- src/Text.mo | 2 +- src/pure/Map.mo | 2 +- src/pure/Queue.mo | 2 +- src/pure/Set.mo | 2 +- src/pure/Stack.mo | 2 +- 21 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/Array.mo b/src/Array.mo index 471a9686..eb28dd31 100644 --- a/src/Array.mo +++ b/src/Array.mo @@ -2,7 +2,7 @@ import Iter "IterType"; import Order "Order"; import Result "Result"; import Prim "mo:⛔"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Bool.mo b/src/Bool.mo index 6f9c6993..23c4bdb6 100644 --- a/src/Bool.mo +++ b/src/Bool.mo @@ -1,7 +1,7 @@ /// Boolean types and operations import Prim "mo:⛔"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Debug.mo b/src/Debug.mo index a1d2d4ef..1f17d35c 100644 --- a/src/Debug.mo +++ b/src/Debug.mo @@ -12,8 +12,8 @@ module { Prim.trap errorMessage }; - public func nyi() : None { - trap("Debug.nyi()") + public func todo() : None { + trap("Debug.todo()") }; public func unreachable() : None { diff --git a/src/Float.mo b/src/Float.mo index 12908fd9..eaa6bb16 100644 --- a/src/Float.mo +++ b/src/Float.mo @@ -2,7 +2,7 @@ import Prim "mo:⛔"; import Int "Int"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Hash.mo b/src/Hash.mo index 5d16b2a0..5f184508 100644 --- a/src/Hash.mo +++ b/src/Hash.mo @@ -2,7 +2,7 @@ import Prim "mo:⛔"; import Iter "Iter"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Int.mo b/src/Int.mo index a4240302..287f855e 100644 --- a/src/Int.mo +++ b/src/Int.mo @@ -2,7 +2,7 @@ import Prim "mo:⛔"; import Hash "Hash"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/InternetComputer.mo b/src/InternetComputer.mo index 2130eccd..3a7efa04 100644 --- a/src/InternetComputer.mo +++ b/src/InternetComputer.mo @@ -1,7 +1,7 @@ /// Originally `ExperimentalInternetComputer.mo` import Prim "mo:⛔"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Iter.mo b/src/Iter.mo index 33d029b0..c9cbd9b9 100644 --- a/src/Iter.mo +++ b/src/Iter.mo @@ -2,7 +2,7 @@ import Type "IterType"; import Order "Order"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/List.mo b/src/List.mo index 2989bbe7..6bbc7276 100644 --- a/src/List.mo +++ b/src/List.mo @@ -3,7 +3,7 @@ import Iter "Iter"; import Order "Order"; import Result "Result"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { public type List = (); // Placeholder diff --git a/src/Map.mo b/src/Map.mo index 904aefd0..af8a905f 100644 --- a/src/Map.mo +++ b/src/Map.mo @@ -3,7 +3,7 @@ import Pure "pure/Map"; import Iter "Iter"; import Order "Order"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Nat.mo b/src/Nat.mo index afc5eb75..2435b9c2 100644 --- a/src/Nat.mo +++ b/src/Nat.mo @@ -4,7 +4,7 @@ import Int "Int"; import Order "Order"; import Prim "mo:⛔"; import Char "Char"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Principal.mo b/src/Principal.mo index cf8c68d2..4c3d1178 100644 --- a/src/Principal.mo +++ b/src/Principal.mo @@ -6,7 +6,7 @@ import Hash "Hash"; import Order "Order"; import Array "Array"; import Text "Text"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Queue.mo b/src/Queue.mo index 2c242567..adb489d9 100644 --- a/src/Queue.mo +++ b/src/Queue.mo @@ -2,7 +2,7 @@ import Iter "Iter"; import Pure "pure/Queue"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Result.mo b/src/Result.mo index 6c7f64f3..4f48f9e0 100644 --- a/src/Result.mo +++ b/src/Result.mo @@ -1,7 +1,7 @@ /// Error handling with the Result type import Order "Order"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Set.mo b/src/Set.mo index 68668209..d713f81b 100644 --- a/src/Set.mo +++ b/src/Set.mo @@ -3,7 +3,7 @@ import Pure "pure/Set"; import Iter "Iter"; import Order "Order"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Stack.mo b/src/Stack.mo index b113fd7b..cb26c801 100644 --- a/src/Stack.mo +++ b/src/Stack.mo @@ -4,7 +4,7 @@ import Pure "pure/Stack"; import Result "Result"; import Order "Order"; import Iter "Iter"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/Text.mo b/src/Text.mo index 4773da12..7d916f9a 100644 --- a/src/Text.mo +++ b/src/Text.mo @@ -5,7 +5,7 @@ import Hash "Hash"; import Iter "Iter"; import Order "Order"; import Prim "mo:⛔"; -import { nyi = todo } "Debug"; +import { todo } "Debug"; module { diff --git a/src/pure/Map.mo b/src/pure/Map.mo index d2e1fb9b..ad7ad890 100644 --- a/src/pure/Map.mo +++ b/src/pure/Map.mo @@ -2,7 +2,7 @@ import Order "../Order"; import Iter "../Iter"; -import { nyi = todo } "../Debug"; +import { todo } "../Debug"; module { diff --git a/src/pure/Queue.mo b/src/pure/Queue.mo index 85b05b6e..a90238d8 100644 --- a/src/pure/Queue.mo +++ b/src/pure/Queue.mo @@ -2,7 +2,7 @@ import Iter "../Iter"; import Stack "Stack"; -import { nyi = todo } "../Debug"; +import { todo } "../Debug"; module { public type Queue = (Stack.Stack, Stack.Stack); diff --git a/src/pure/Set.mo b/src/pure/Set.mo index 680c9827..eb2e341b 100644 --- a/src/pure/Set.mo +++ b/src/pure/Set.mo @@ -2,7 +2,7 @@ import Iter "../Iter"; import Order "../Order"; -import { nyi = todo } "../Debug"; +import { todo } "../Debug"; module { diff --git a/src/pure/Stack.mo b/src/pure/Stack.mo index 87961354..db1f33d9 100644 --- a/src/pure/Stack.mo +++ b/src/pure/Stack.mo @@ -4,7 +4,7 @@ import Array "../Array"; import Iter "../IterType"; import Order "../Order"; import Result "../Result"; -import { nyi = todo } "../Debug"; +import { todo } "../Debug"; module {