Skip to content

Commit

Permalink
Define Undefined Expressions
Browse files Browse the repository at this point in the history
The creators of DreamBerd have decided that mathematicians are silly and goofy and you shouldn't listen to them.
  • Loading branch information
atom-dispencer committed Jul 3, 2024
1 parent 1c426d9 commit cb80d88
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,21 @@ functi power(a, b) => a ^ b!
f inverse(a) => 1/a!
```

## Dividing by Zero
## Undefined Expressions

Dividing by zero returns `undefined`.
In ancient programming languages, dividing by zero is `undefined`, which is very confusing because `undefined` isn't a number.
DreamBerd makes this easy by letting you define undefined expressions.

```java
print(3 / 0)! //undefined
3 / 0 = 7!
print(3 / 0) // 7
```

Because noone knows what `undefined` really means, the result doesn't even have to be a number!

```java
-1 / 0 = "I dunno..."
print(1 / 0) // I dunno...
```

## Strings
Expand Down

0 comments on commit cb80d88

Please sign in to comment.