Tatumizer

Results 66 comments of Tatumizer

As an abstract exercise, if we were allowed to implement DSL, what would it look like? Here's an (original?) idea: to write the structure of the widget in a manner...

Variant: instead of "default", use "pass" or "nop" or "noop"

I agree that "default" is not a very good word. Probably "noop" is better, and applicable in every context. Having "noop" operator is not a bad idea regardless - e.g.,...

My main objection against "if" is (as already noted in the write-up) that we already have "if" statement, and now we are adding "if" expression. But we already have "if"...

Yes, I was thinking about "void" too :) It's a good word indeed, I was afraid it can cause some parsing conflicts with another meaning as a data type, but...

There's another concern that new type of "if" will be made redundant if argument block is implemented. Argument block is a very promising idea, it adds a lot of power...

if you add spread operator, then the language doesn't gain much from "if" element, because then you can always write ``` var extraParams = condition? { named: argument, another: argument...

> We are still looking at doing it in collection literals. For collection literals, there's much simpler solution:. by analogy with lists, define concatenation operator for maps. For lists, we...

Map may be retrofitted with a constructor with vararg list of MapEntries: `Map.fromEntries(MapEntry entries...)` Then it will be possible to write (see the discussion in #15) ``` var map =...

Late variables are evaluated lazily, so the presence of default value won't prohibit the use of `?? a` - unless the variable was accessed before the test: ```dart f({late x=1,...