kc
2017-05-16 11:15:54 UTC
It looks like Dart is sticking with lhs type annotations with a tweak re
function type syntax:
https://github.com/dart-lang/sdk/issues/29404
My suggestion is that maybe Call (or Callable) would be better than
Function. Matches the 'call' method on Callable objects and indicates not
only functions but tear-off methods/constructors. Also short.
The github issue mentions putting the return type of functions/methods on
the rhs. This is like fidl - the Fuchsia Interface Definition Language.
Given the centrality of Flutter/Fuchsia to Dart going forward is there a
case for synchronising the Dart syntax and fidl where possible. Lessen the
friction or mismatch.
K.
function type syntax:
https://github.com/dart-lang/sdk/issues/29404
My suggestion is that maybe Call (or Callable) would be better than
Function. Matches the 'call' method on Callable objects and indicates not
only functions but tear-off methods/constructors. Also short.
The github issue mentions putting the return type of functions/methods on
the rhs. This is like fidl - the Fuchsia Interface Definition Language.
Given the centrality of Flutter/Fuchsia to Dart going forward is there a
case for synchronising the Dart syntax and fidl where possible. Lessen the
friction or mismatch.
K.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.