Benjamin

Results 48 comments of Benjamin

I've been writing more and more Rust lately due to Advent of Code and it really makes me appreciate a strong `Result` type and I definitely would love to see...

> (Hmm, might look better as prefix, like catch(e).) I'm more fond of a prefix like `try`. So for example, you'd do `var r = try int.parse(string)`. I think the...

> the ?? one looks like it should act on null, not absence. Yeah I'm just throwing out ideas, it didn't look great to me either. I also had a...

> How would this work together with cascade syntax? Oversight on my part, will probably edit the issue to use `...` instead as to not collide with the cascade syntax....

> If it only works for integers, I don't think it's worth doing. Agreed, it's why I proposed it works with strings too (user-defined types could have an interface to...

Would love to see some movement on this. I need this for logging requests. Would `Request.change()` with no parameters be a good alternative for now until this gets implemented?

> My biggest issue is that you do `const list = []; list.add(1);` and it crashes at runtime because it can't verify that an immutable list is mutable at compile....

This should work for maps too, like: ```dart final String? seasonId = '1'; final queryParameters = { 'seasonId': ?seasonId, // the '?' could instead go in front of the key,...