dwyl / learn-dart

🎯Learn the Dart programming language to build cross-platform (Mobile, Web & Desktop) Apps with Flutter!
GNU General Public License v2.0
33 stars 8 forks source link

Null safety #18

Open SimonLab opened 3 years ago

SimonLab commented 3 years ago

https://www.youtube.com/watch?v=iYhOU9AuaFs

By default the variables will not be able to be null. You will need to specify if a variable can be null with ?: var hello? = "hello"; This sounds similar to how some FP languages are using Maybe

nelsonic commented 3 years ago

Worth reading this post: https://medium.com/dartlang/announcing-dart-null-safety-beta-87610fee6730