MarsGoatz

Results 16 comments of MarsGoatz

I understand your comment about the type system here and there are two things I feel about this: - String interpolation here is undoing all the "good things" that come...

The pitfall here, IMO, interpolation is letting the null string bypass the null safety feature. Consider this example: Let's say we have a data variable called `String? lastUpdatedTime` and consider...

Here is a quick example that demonstrates the issue more clearly with Flutter UI. The idea is the data takes 2 seconds to load. Without interpolation the experience is much...

If there would be an alternative to interpolation where you would be forced to use bangs on nullable values, that would be a great solution. Appending with + also suffers...

What are the consequences of removing `toString()` from `null` other than interpolation breaking and being forced to use bangs on nullable values? Because that is the root cause of all...

@AlexanderFarkas Please go through the whole thread for context. Also have a look at this example https://dartpad.dev/f2093518fb25acb7e5de6908174e6d2e

Thanks @srawlins! Wouldn't `print(nullableValue ?? 'null')`, though annoying, be more in alignment with what Dart's null safety is by definition? w.r.t the lint rule, I am with @tatumizer if it...

> We have other cases that are potentially more harmful than that. See this comment (Note: the function parameter could be of type int? - and the problem would be...

Hey @leafpetersen, I have more context now, thanks to replies from you, @srawlins and @tatumizer. So here is the summary. If you haven't read already, I would recommend you go...