Spec-Zone.ru › Haxe

Null<T>

no package

from T to T

Available on all platforms

Null<T> is a wrapper that can be used to make the basic types Int, Float and Bool nullable on static targets.

If null safety is enabled, only types wrapped in Null<T> are nullable.

Otherwise, it has no effect on non-basic-types, but it can be useful as a way to document that null is an acceptable value for a method argument, return value or variable.

See also:

  • https://haxe.org/manual/types-nullability.html

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/Null.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API