- TDP-2-002accepted
Checked arithmetic and auto-vectorization
Keep integer overflow trapping by default, remove more of the checks by proof, and give hot loops an explicit way to ask for wrapping.
- TDP-2-004accepted
Machine-readable diagnostics and applying fixes
Add a JSON form of every diagnostic, with its fix as data, and a command that applies only validated fixes on request.
- TDP-2-009accepted
Closures and function values
Add anonymous functions that can capture variables, passed and stored as function values, in four phases from capture-free to stack-allocated environments.
- TDP-2-010accepted
Generic inference from arguments and return types
Infer a generic struct's type arguments from a constructor's arguments, allow type parameters that appear only in a return type, and add constructors that carry their element type.
- TDP-2-011accepted
Iteration over collections and storable slices
Let
for x in listwork over the standard collections through a simple protocol, and let aSlice<T>be stored in fields, returned and kept in collections. - TDP-2-012accepted
Richer patterns and enum payloads
Make
compareusable as an expression, add range and nested or-patterns, and let plain enums carry data. - TDP-2-013accepted
Error traces, closed error sets and panic backtraces
Show where an error travelled and where a panic happened, and let a function declare exactly which errors it can return.
- TDP-2-014accepted
Circular imports
Allow two modules to import each other, so a program that is rejected today for a cycle compiles.