This is a list of UNRELEASED changes for the Mojo language and tools.
When we cut a release, these notes move to changelog-released.md
and that's
what we publish.
[//]: # Here's the template to use when starting a new batch of notes: [//]: ## UNRELEASED [//]: ### ⭐️ New [//]: ### 🦋 Changed [//]: ### ❌ Removed [//]: ### 🛠️ Fixed
-
Dict
now supportspopitem
, which removes and returns the last item in theDict
. (PR #2701 by @jayzhan211) -
Added
String.unsafe_cstr_ptr(self)
that returns anUnsafePointer[C_char]
for convenient interoperability with C APIs. -
Added
C_char
type alias insys.ffi
.
- Continued transition to
UnsafePointer
and unsigned byte type for strings:- Rename
String._as_ptr()
toString.unsafe_ptr()
String.unsafe_ptr()
now returns anUnsafePointer[UInt8]
(wasDTypePointer[DType.int8]
)
- Rename