Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement compile time function evaluation (CTFE) #11621
Comments
brendanzab
referenced this issue
Jan 17, 2014
Closed
Simplify std::num::Primitive trait definition #11622
brendanzab
added a commit
to brendanzab/rust
that referenced
this issue
Jan 17, 2014
brendanzab
added a commit
to brendanzab/rust
that referenced
this issue
Jan 17, 2014
bors
added a commit
that referenced
this issue
Jan 18, 2014
tweber12
added a commit
to tweber12/rust
that referenced
this issue
Jan 18, 2014
This comment has been minimized.
This comment has been minimized.
|
Nominating. The "P-backcompat-lang" should be removed. CTFE is a post-1.0, backwards-compatible feature. |
aturon
added
the
I-nominated
label
Sep 18, 2014
This comment has been minimized.
This comment has been minimized.
|
Re-assigning as P-low Also, as something that really would require an RFC, we may want to move it to an issue on that repo, depending on what policy we decide on there. Cc @brson |
pnkfelix
added
P-low
and removed
P-backcompat-lang
labels
Sep 18, 2014
brson
removed
the
I-nominated
label
Sep 18, 2014
This comment has been minimized.
This comment has been minimized.
|
@nick29581 Should this be moved to rust-lang/rfcs? (There is already rust-lang/rfcs#322 though.) |
This comment has been minimized.
This comment has been minimized.
|
Closing in favour of rust-lang/rfcs#322 |
nrc
closed this
Oct 14, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brendanzab commentedJan 17, 2014
This is a big gap in Rust's current support of zero cost abstractions, and something that puts us behind languages such as D or C++. This would for example allow us to deprecate the
std::uint::{bits, bytes}statics in favor of using thestd::mem::size_offunction. It would also allow for the use of overloaded operators in constexprs, which would in turn allow us implement the base numeric arithmetic operators within the standard library, as opposed to relying on compiler magic (see #11526).