Mouad Debbar

Results 53 comments of Mouad Debbar

In cases where the compiler can't statically determine which overload to call, it could use a union type for the return: ```dart C foo(A a) {} D foo(B b) {}...

`FutureOr` is a real use case that is hardcoded in Dart today and would be solved neatly when Dart introduces union types. I agree they don't have to match all...

Can we just redirect bots to common search pages instead of adding "no index"? For example: if a bot is requesting "?query=Allah&view=default" redirect it to "?query=Allah".

Yes. We have to read the User-Agent (from the HTTP headers) and compare it with a list of bot user agents. http://user-agent-string.info/list-of-ua/bots. For example, Google's bot has the user agent...

When they hit the start url, they shouldn't get any content. We should respond with an HTTP redirect (code 302) so they go and load the end url. Maybe redirection...

It would be great if Dart had builtin support for a `tuple` type, and provided syntactic sugar for destructuring tuples: ```dart typedef LatLng = Tuple(double, double); class MapService { Future...

@moffatman you are right that we ignore ctrl-zoom now, but that's not the case on Mac/iOS.

@moffatman I believe on macOS, it should just scroll even if ctrl is pressed.

@moffatman I think, by default, we should do what the platform does (in this case, browsers on macOS scroll even if ctrl is pressed). Apps can customize this behavior if...

Thanks for the PR, @cybermerc! Would you mind cleaning the PR by using a 2-space indentation? That way, people can see what exactly you are changing.