The road to Dart 3: A fully sound, null safe language
ryuukk_
ryuukk.dev at gmail.com
Wed Dec 14 19:18:42 UTC 2022
On Tuesday, 13 December 2022 at 09:34:46 UTC, Suliman wrote:
> On Sunday, 11 December 2022 at 19:45:09 UTC, JN wrote:
>> On Thursday, 8 December 2022 at 18:03:11 UTC, ryuukk_ wrote:
>>>[...]
>>
>> Interesting. Dart is one of my favorite programming languages
>> (except for D of course), and it's my go-to language whenever
>> doing anything related because I can't stomach Javascript and
>> never really tried Typescript much. However the null safety
>> features I found to be an annoyance. Same with other
>> languages, I feel like I am fighting the language and just
>> explicitly declaring types as nullable or forcing dereference
>> wherever possible. Sure, you will not get a null pointer
>> exception, but in case a null happens, parts of your code will
>> just not execute silently. Maybe I am missing something but I
>> was never sold on the null safety angle.
>>
>> [...]
>
>> like pairs
>
> Could anybody explain what it is?
Tuples, Dart 3 will support that too, you can return multiple
values this way, and deconstruct them, very handy to have
```
(double x, double y) getLocation(String name) {
if (name == 'Aarhus') {
return (56.1629, 10.2039);
} else {
...
}
}
```
More information about the Digitalmars-d
mailing list