Smoke is a Dart package that exposes a reduced reflective system API. This API includes accessing objects in a dynamic fashion (read properties, write properties, and call methods), inspecting types (for example, whether a method exists), and symbol/string convention.
Issue by sigmundchOriginally opened as dart-lang/sdk#17863
Strings are easier to use and faster than symbol (e.g. lookup in tables), and if the only purpose of symbol is for dart:mirrors, we could change smoke to hide them under the smoke/mirrors.dart implementation.
In that case, should we also be changing package:observe and other packages to use String instead of symbol?
Issue by sigmundch Originally opened as dart-lang/sdk#17863
Strings are easier to use and faster than symbol (e.g. lookup in tables), and if the only purpose of symbol is for dart:mirrors, we could change smoke to hide them under the smoke/mirrors.dart implementation.
In that case, should we also be changing package:observe and other packages to use String instead of symbol?