GithubHelp home page GithubHelp logo

const-generics about lang-team HOT 6 OPEN

rust-lang avatar rust-lang commented on May 25, 2024 1
const-generics

from lang-team.

Comments (6)

lcnr avatar lcnr commented on May 25, 2024 2

2021-04-07:

news since the last update:

  • feature(min_const_generics) has been stabilized
  • we now have regular weekly meetings every tuesday
  • feature(const_generics_defaults) is now on nightly, allowing for
#![feature(const_generics_defaults)]
struct WithDefault<const N: usize = 3> {
    inner: [u8; N],
}

current topics:

  • complex generic const arguments, i.e. fn split_first<T, const N: usize>(arr: [T; N]) -> (T, [T; N - 1])
    • available on nightly using feature(const_evaluatable_checked) which is still quite broken
    • there are still some big design and implementation challenges
  • working towards allowing more const param types, such as fn foo<const CONFIG: Config>
  • working towards stabilization of some smaller improvements, see our meeting notes for more details

from lang-team.

varkor avatar varkor commented on May 25, 2024 1

In the past, there have been various "procedural RFCs" that specify functionality that has already been deemed desirable, and therefore not required the full comment period (e.g. rust-lang/rfcs#2300, rust-lang/rfcs#2591). Perhaps this is another such situation.

from lang-team.

nikomatsakis avatar nikomatsakis commented on May 25, 2024
  • May be in code complete status, planning a meeting to go over and create a comprehensive test suite

from lang-team.

nikomatsakis avatar nikomatsakis commented on May 25, 2024

2020-10-26:

  • lcnr and I prepared a list of test cases last week.
  • What is the next procedural step?
    • Stabilization report seems appropriate but is not a great place for lasting documentation
    • RFC would be more visible but we don't really need the "comment requirement"

from lang-team.

lcnr avatar lcnr commented on May 25, 2024

2021-05-18

  • working on a vision doc for const generics
  • experimenting with a hack to implement Default for generic arrays
  • const parameter defaults is getting close to being ready for stabilization
  • some (small) further work on complex generic const arguments and val trees(rust-lang/rust#83234) as well as the smaller improvements mentioned last time

from lang-team.

BoxyUwU avatar BoxyUwU commented on May 25, 2024

2021-07-06

  • started a WIP document to help figure out structural equality (structural equality is a blocker for allowing more than just integers, char and bool as const param types)
  • various small fixes for const_generics_defaults made, would be a good idea to figure out if we can stabilise this now

from lang-team.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.