Acknowledged

Suggestion: Import Toybox.Lang by default

With recent SDK updates, built-in types such as Number, String, and Boolean cannot be resolved without including "import Toybox.Lang;" at the top of the file. So as a result, it needs to be included in practically every file. IMO this creates unnecessary boilerplate and it should be imported by default when compiling.

  • This seems like a good suggestion, until you realize that not everyone will want all of the Lang types polluting the namespace. For instance, imagine that I'm making my own arbitrary precision number type that I want to call Number. If the system implicitly imported Toybox.Lang, the implementation and all clients would always have to explicitly specify which type they wanted; Lang.Number or MyModule.Number.