Release Candidate 1 is out. This means the API surface is stable. It’s “Go Live” supported for production.
DateOnly and TimeOnly
Finally! We no longer need to use `DateTime` with “00:00:00” time for birthdays. These new structs align with SQL `date` and `time` types perfectly.
DateOnly birthday = new DateOnly(1999, 1, 1);
TimeOnly alarm = new TimeOnly(7, 0);
PriorityQueue
A new collection type `PriorityQueue<TElement, TPriority>` has been added. Essential for pathfinding algorithms (A*) or job scheduling systems.
var queue = new PriorityQueue<string, int>();
queue.Enqueue("Clean dishes", 2);
queue.Enqueue("Feed cat", 1); // Higher priority (lower number)
var next = queue.Dequeue(); // "Feed cat"
Discover more from C4: Container, Code, Cloud & Context
Subscribe to get the latest posts sent to your email.