whamm 0.1.0

A framework for 'Wasm Application Monitoring and Manipulation'
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Ternary Expressions #

`Whamm` supports a version of the "conditional" expression that chooses one of two values based on a condition.
The syntax follows C, C++, and Java, which uses `? :`.

```
// with declared types
var a: i32;
a = 1 > 0 ? 16 : 27; // == 16
a = 1 < 0 ? 17 : 29; // == 29
```

## Short-circuit evaluation ##

The ternary expression will only evaluate the branch corresponding to the value of the condition.
In other words, it short-circuits.