# remove ability to mark if and switch as inline · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b78c91951a1db34c615a011e0444608285f1a74c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b78c91951a1db34c615a011e0444608285f1a74c

Requested commit: b78c91951a1db34c615a011e0444608285f1a74c

Commit: b78c91951a1db34c615a011e0444608285f1a74c

Tree: 2cae0609ec2670a4a1e1adb7905ae495abc9a238

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
remove ability to mark if and switch as inline

if and switch are implicitly inline if the condition/target
expression is known at compile time.

instead of:

```
inline if (condition) ...
inline switch (target) ...
```

one can use:

```
if (comptime condition) ...
switch (comptime target) ...
```

````

## Parents

- [cd08c1f3be278366ee69c3cf4ab1091eb884e264](https://git.cafe/gitcafe/zig/commit/cd08c1f3be278366ee69c3cf4ab1091eb884e264?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b78c91951a1db34c615a011e0444608285f1a74c?format=markdown)
