Generics with <>. Deprecation of {} generics.

This commit is contained in:
Christoffer Lerno
2026-01-18 00:33:43 +01:00
parent d3ebd4a130
commit c3b2694834
93 changed files with 179 additions and 197 deletions

View File

@@ -39,7 +39,7 @@ macro void quicksort_indexed(list, start, end, cmp = EMPTY_MACRO_SLOT, context =
$endif
}
module std::sort::cs{Type, KeyFn};
module std::sort::cs <Type, KeyFn>;
alias Counts @private = usz[256];
alias Ranges @private = usz[257];

View File

@@ -17,7 +17,7 @@ macro void insertionsort(list, cmp = EMPTY_MACRO_SLOT, context = EMPTY_MACRO_SLO
$endif
}
module std::sort::is{Type, CmpFn, Context};
module std::sort::is <Type, CmpFn, Context>;
alias ElementType = $typeof(((Type){})[0]);
const bool IS_SLICE = Type.kindof == SLICE;

View File

@@ -37,7 +37,7 @@ macro quickselect(list, isz k, cmp = EMPTY_MACRO_SLOT, context = EMPTY_MACRO_SLO
$endif
}
module std::sort::qs{Type, CmpFn, Context};
module std::sort::qs <Type, CmpFn, Context>;
alias ElementType = $typeof(((Type){})[0]);
const bool IS_SLICE = Type.kindof == SLICE;