Monday, 10 June 2013

Dartclass Got Types! (Optionally)

My first live Web UI app, 'Dartclass' has had a little update. It has Type Declarations which are, of course, optional in true Dart style.

Properties/Observables - String.name="daftspaniel" becomes String name = "daftspaniel";

Methods - int.getAge becomes int getAge(){}

The notation of int.getAge is a bit funny but it allows spaces to separate the list of items and is easy to type. I'd welcome feedback on that choice and any other aspect of the tool. It would be easy to add an alternative character. I first consider an underscore but it requires the SHIFT key on my keyboard. Hope this helps you get started coding some great ideas.

Next for Dartclass, I'd like it to generate a basic HTML file for Web Components.