1. Glossaryفەرهەنگی زاراوەکان
Null safety
پاراستن لە بێنرخ
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A language rule that a variable can hold null only if its type says so, for example int? instead of int. The compiler then stops many crashes caused by missing values. Dart has had sound null safety since Dart 3.

یاسایەکی زمانە کە گۆڕاوێک تەنها کاتێک دەتوانێت null هەڵبگرێت کە جۆرەکەی ئەوە بڵێت، بۆ نموونە int? لە جیاتی int. بەم شێوەیە ڕێگری لە زۆر دەکات کە بەهۆی نەبوونی نرخەوە ڕوو دەدەن. Dart لە ⁦Dart 3⁩ـەوە هەیە.

Exampleنموونە

int? age; may be null; int count = 0; never can. Use age ?? 0 for a default.

int? age; دەکرێت بێت؛ int count = 0; هەرگیز. age ?? 0 بۆ نرخی بنەڕەتی بەکار بهێنە.

int? age;          // may be null
int count = 0;     // never null
print(age ?? 0);   // 0

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

Proposed: پاراستن (protection) + the registry's null «بێنرخ».

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Dart in 100 SecondsFireship · Englishئینگلیزی · 1.1M viewsبینین · 42K likesلایک · Partبەشی 1:01–1:24 (ofلە 2:30)
The Complete Dart & Flutter Developer Course | Full Tutorial For Beginners to AdvancedRivaan Ranawat · Englishئینگلیزی · 1.9M viewsبینین · 36K likesلایک · Partبەشی 1:00:24–1:12:00 (ofلە 20:47:34)

Learn more inزیاتر فێربە لە