vadimtsushko/mongo_dart — pull request #12 by geekrumper (2012-12-10 12:13:30+00:00)
Title: clean up with some other fixes

Hey there,

just did a clean up from the editor and also added some other fixes listed below:

- optional positional parameter calling: Since these parameters are in a Array, no need to reference the parameter name as it's postion (index) is constant

- giving the variable the same name as the method itself (provisional):
using paranthesis here (and not the new getter/setter syntax) doesn't make a difference here, therefore changing the variables name and also using new getter/setter syntax seems the way to go for now.

Example: int token = token();

new method: int get token => ....;
reference: int tokenInteger (don't use "t" since it's not descriptive enough)

I'm playing around with the second solution, but it's been commited to give you a hint for a more proper solution.

This pull request is just a proporsal, you may use it to be able to compile.

have fun coding...
Eddie