2025-09-08 — Last Week in Carbon #6027
josh11b
announced in
Last Week in Carbon
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Updates on leads issues
strbufkeyword forCore.StrBuf.strkeyword forCore.StrUpdates on proposals
Updates on moderation across our community spaces (Discord and GitHub)
Activity on toolchain
Selfand.SelfCopyandDestroy.MaybeUnformed(T)andunsafe asin #5989 #6014Activity on C++ interop
operator*andoperator->should both map to a pointer-like interface.operator&should not directly map to any Carbon syntax.operator!is arguably unnecessary sincenotconverts its operand tobooland always returnsbool. Possibly that should invoke explicit conversions, like control flow conditions in C++? And maybe a C++ type that hasoperator!should be treated as having an explicit conversion tobool?operator!is used for building a DSL rather than as a boolean operator.Core.As(explicit conversion) when the callsite looks like a conversion and names the type.if (some_ptr)doesn't work, but that kind of construct has a history of causing bugs in some contexts. It's unclear how much that generalizes, though.operatorX?), and then make case-by-case decisions about when/how to expose it in a more natural way.operatorwill be a Carbon keyword?Activity on memory safety
Other active discussions
These include Discord Chat, GitHub Discussions, or open discussion sessions.
ref?in animplto implement the same form interface twice?var N.x: i32 = 0;should work, it's just not implemented yet.vardeclarations.somemay make some kinds of patterns inexpressible.as T some Uonly does one level of unwrapping, even thoughas Tandsome Uboth do one level of unwrapping on their own, but that's counterintuitive to some.asis always required, soas T,as some U, andas T some Ualways do one level of unwrapping?varparameters destroyed in the caller or callee?varhas to happen in the callee, but we already do that.new_proposalscript.pprofprofile?perfinstead.var MyNS.(a: i32, b: i32) = ...?varsyntax, so it sounds like leads wanted to start with something simple.case class Cdeclarations real classes, rather than named structs?buf(Derived*)toslice(Base*)..Selfreferences in a facet type that refer to different things..SelftoTor vice-versa when the.Selfrefers to thatT)..Selfreferences for nested facet types?RSS Feed for "Last Week in Carbon" here
Beta Was this translation helpful? Give feedback.
All reactions