On Tuesday, 10 June 2025 at 13:19:42 UTC, Adam D. Ruppe wrote:

* Tuple destructuring works.

* `with(auto x = thing) { ... }` works.

* `foreach(int a, item; some_array)` works, it puts out a runtime assert that some_array.length fits in an `int` so you don't have to cast.

* Stack traces are abbreviated, trying to focus on relevant info. https://dpldocs.info/this-week-in-d/Blog.Posted_2025_05_26.html

* Heredoc strings have automatic outdenting, similar to C#. See: https://dpldocs.info/this-week-in-d/Blog.Posted_2025_02_20.html#outdenting-heredoc-strings

* `import("file")` will just work if file is located next to the source file.

Awesome stuff! The tuple destructing, with auto, and foreach(int a, item; some_array) improvements are definitely my favorite and things I have encountered before that I thought should work, but didn't. Quoted above is an ordered list of changes I personally find the most interesting for reference. Looking forward to these being available in upstream or OpenD becoming a more widely accepted D standard.

  • OpenD update ... Adam D. Ruppe via Digitalmars-d-announce
    • Re: Open... Sergey via Digitalmars-d-announce
    • Re: Open... Dejan Lekic via Digitalmars-d-announce
      • Re: ... Adam D. Ruppe via Digitalmars-d-announce
      • Re: ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
        • ... H. S. Teoh via Digitalmars-d-announce
        • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
          • ... H. S. Teoh via Digitalmars-d-announce
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
        • ... Dejan Lekic via Digitalmars-d-announce
    • Re: Open... Element Green via Digitalmars-d-announce
      • Re: ... Adam D. Ruppe via Digitalmars-d-announce

Reply via email to