|Dart 2.12 Released With FFI|
|Written by Kay Ewbank|
|Thursday, 11 March 2021|
Dart has been updated to provide smaller code size, faster type checks, better usability for type errors, and new language features to improve productivity when building user experiences.
Dart 2.12's improvements start with the inclusion of stable versions of sound null safety. Null safety intended to help developers avoid null errors, a class of bugs that are often hard to spot. The development team describes null safety as the largest addition to the Dart language since the introduction of the sound type system in Dart 2.0. Null safety improves the strength of the type system, enabling you to catch null errors during development, preventing crashes in production.
FFI is an interoperability mechanism that lets you invoke existing code written in the C programming language, such as calling Windows Win32 APIs. both for better portability and for integrating with highly tuned C code for performance critical tasks. It was included in the previous release as a beta feature, but is now considered stable and ready for production use. The developers have added some new features, including nested structs and passing structs by value. Structs can be passed both by reference and by value in C code, but the beta version of FFI only supported passing by reference. This has now been expanded.
Dart 2.12 is available now.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Thursday, 11 March 2021 )|