Nobody wants the long version of finding out if a variable is set.

So switched to the short version with 'orelse'. ;)
This commit is contained in:
Chris Boesch
2024-05-10 23:21:04 +02:00
parent dfdaf03d99
commit 67f87a76c2
2 changed files with 7 additions and 10 deletions

View File

@@ -51,8 +51,6 @@ fn visitElephants(first_elephant: *Elephant) void {
// We should stop once we encounter a tail that
// does NOT point to another element. What can
// we put here to make that happen?
if (e.tail == null) ???;
e = e.tail.?;
e = e.tail ???
}
}