You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
A Vector type with type parameter T and term parameter N. N is used to determine the number of components this Vector has. A Vector<f32; 4> for instance is a Vector with 4 components (x, y, z, w), each of type f32.
structVector<T; N> {
values: [T; N],
}
A more extensive example with implementation blocks and limits to types and type terms.
Syntax proposal : Dependent Types
Summary
Types with terms applied to them.
Examples
A
Vector
type with type parameterT
and term parameterN
.N
is used to determine the number of components this Vector has. AVector<f32; 4>
for instance is a Vector with 4 components (x, y, z, w), each of typef32
.A more extensive example with implementation blocks and limits to types and type terms.
References
The text was updated successfully, but these errors were encountered: