Mateus Felipe C. C. Pinto

Results 237 comments of Mateus Felipe C. C. Pinto
trafficstars

> Came across this the other day when I wanted to use switch expression to create entries in a map literal, where both the key and value depend on the...

Just remembered that there is already an issue to cover this last case: #2943. The current workaround would be to throw in the key and use a "fake throw" in...

> > the last case of your switch expression would still fail with `Expressions can't be used in a map literal.` > > Ah right, that got lost in translation...

Well, it would be even nicer if there was no distinction between operators and functions, but I know there's no viability in Dart.

@lrhn I also prefer promotion over `as`, and agree that an `as!` is not viable. We had a linter rule `avoid_as` that hinted to prefer promotion instead. Why it has...

@domhel You can make `foo` final using statement `if` and introducing variables in the local scope of the statement. ```dart final int foo; if (bar < 10) { final x...

> Readability is a subjective thing. But statements can't be used everywhere. E.g can't use them when building collections. Sure, I didn't say I'm against if expressions, I just informed...

Hello, @diefferson. Do you have any plans on doing this?

I think for macOS you can use most of your iOS code. Example: https://stackoverflow.com/a/70148000/3055725

Couldn't reproduce it. ```cl CL-USER> (jsown:to-json (jsown:empty-object)) "{}" ``` Maybe it's already fixed?