Deprecation of operator(@construct)

This commit is contained in:
Christoffer Lerno
2025-02-28 10:39:08 +01:00
parent f134b8b67a
commit 1b0ac13d76
13 changed files with 19 additions and 729 deletions

View File

@@ -28,12 +28,12 @@ fn Maybe value(Type val)
return { .value = val, .has_value = true };
}
fn Maybe Maybe.with_value(Type val) @operator(construct)
fn Maybe Maybe.with_value(Type val) @deprecated("Use maybe::value instead.") @operator(construct)
{
return { .value = val, .has_value = true };
}
fn Maybe Maybe.empty() @operator(construct)
fn Maybe Maybe.empty() @deprecated("Use maybe::EMPTY instead.") @operator(construct)
{
return { };
}