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
strbuf
keyword forCore.StrBuf
.str
keyword forCore.Str
Updates on proposals
Updates on moderation across our community spaces (Discord and GitHub)
Activity on toolchain
Self
and.Self
Copy
andDestroy
.MaybeUnformed(T)
andunsafe as
in #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 sincenot
converts its operand tobool
and 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.operator
will be a Carbon keyword?Activity on memory safety
Other active discussions
These include Discord Chat, GitHub Discussions, or open discussion sessions.
ref?
in animpl
to implement the same form interface twice?var N.x: i32 = 0;
should work, it's just not implemented yet.var
declarations.some
may make some kinds of patterns inexpressible.as T some U
only does one level of unwrapping, even thoughas T
andsome U
both do one level of unwrapping on their own, but that's counterintuitive to some.as
is always required, soas T
,as some U
, andas T some U
always do one level of unwrapping?var
parameters destroyed in the caller or callee?var
has to happen in the callee, but we already do that.new_proposal
script.pprof
profile?perf
instead.var MyNS.(a: i32, b: i32) = ...
?var
syntax, so it sounds like leads wanted to start with something simple.case class C
declarations real classes, rather than named structs?buf(Derived*)
toslice(Base*)
..Self
references in a facet type that refer to different things..Self
toT
or vice-versa when the.Self
refers to thatT
)..Self
references for nested facet types?RSS Feed for "Last Week in Carbon" here
Beta Was this translation helpful? Give feedback.
All reactions