mirror of
https://github.com/ziglang/zig.git
synced 2026-01-12 02:15:12 +00:00
BRANCH_TODO file moved to the pull request comments
This commit is contained in:
parent
0498bd40d9
commit
708f153288
23
BRANCH_TODO
23
BRANCH_TODO
@ -1,23 +0,0 @@
|
||||
Scratch pad for stuff to do before merging master
|
||||
=================================================
|
||||
|
||||
labeled break from a block
|
||||
|
||||
better behavior for implicit casts. for example these introduce an extra allocation/memcpy:
|
||||
var x: [1]i32 = [_]i32{1};
|
||||
var x = ([1]i32)([_]i32{1});
|
||||
whereas this one does not:
|
||||
var x = [_]i32{1};
|
||||
but all 3 should be semantically identical
|
||||
|
||||
|
||||
This example has less than ideal LLVM IR:
|
||||
```zig
|
||||
export fn entry() void {
|
||||
_ = mul(true, 1) catch undefined;
|
||||
}
|
||||
pub fn mul(c: bool, answer: i32) error{Overflow}!i32 {
|
||||
return if (c) error.Overflow else answer;
|
||||
}
|
||||
```
|
||||
It creates an unnecessary stack variable.
|
||||
Loading…
x
Reference in New Issue
Block a user