Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mention Zig comptime
  • Loading branch information
ecstatic-morse committed May 5, 2020
commit 20d7f70abf4064867654c44d1edcbc33c4fb6a2d
4 changes: 4 additions & 0 deletions text/0000-inline-const.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,14 @@ that they are best considered as a unit, however.
# Prior art
[prior-art]: #prior-art

Zig has the `comptime` keyword that [works similarly][zig] when it appears
before a block.

I'm not aware of equivalents in other languages.

AFAIK, this was [first proposed] by @scottmcm.

[zig]: https://kristoff.it/blog/what-is-zig-comptime/#compile-time-function-calls
[first proposed]: https://internals.rust-lang.org/t/quick-thought-const-blocks/7803/9

# Unresolved questions
Expand Down