Giter Site home page Giter Site logo

Comments (6)

SuperWig avatar SuperWig commented on July 19, 2024 1

Well I've started working on it anway because I have too much free time on my hands and it's a fun learning experience 🤷‍♂

from stl.

SuperWig avatar SuperWig commented on July 19, 2024

Is someone working on this? I think I could partially implement this.
Though isn't this partially dependant on #30?

from stl.

StephanTLavavej avatar StephanTLavavej commented on July 19, 2024

We haven't started working on this. Be aware that it's a major feature, one of the largest in C++20.

Yep, WG21-P1361 "Integrating <chrono> With <format>" links them (it's not a major dependency, as I understand it).

One of the things that we were planning to do is evaluate whether we should attempt to implement this from scratch, or incorporate an existing implementation. libc++'s implementation is in progress (according to their hopefully-accurate status page), while Howard Hinnant (the designer of chrono, and the original author of libc++) has an implementation of this feature, but we'd need to work out licensing.

from stl.

SuperWig avatar SuperWig commented on July 19, 2024

Be aware that it's a major feature, one of the largest in C++20.

That's why I said partially ;). Though having had a quick look at what libc++ has implemented so far it's not a whole lot more that I was considering on implementing.

(basically, not the clocks and I/O/formatting)

from stl.

SuperWig avatar SuperWig commented on July 19, 2024

@StephanTLavavej Quick question, when the standard says "Returns: expression" I shouldn't deviate from that at all, right?

from stl.

StephanTLavavej avatar StephanTLavavej commented on July 19, 2024

Actually, the Standard’s As If Rule says that you can do anything you want, as long as the observable effects are “as if” you did exactly what the Standard says. For a Returns element (or the stronger Effects: Equivalent To), you generally should do what it says verbatim (with appropriate qualification etc.), but sometimes it is faster or better to do something different. If you do something different, you should comment it and/or call it out in your commit notes.

from stl.

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.