Add ability to automatically inference type for unowned variables
Currently Vala supports auto-type inference through the var
keyword and that works well, but defining an unowned
variable requires the user to explicitly define it's type. Example:
unowned string a = "A string";
// Correct, type defined here
unowned string b = a;
// Error: The type name `var' could not be found
unowned var b = a;
I think unowned var
could be added for more complete variable defining, as defining type and using var
works for non-unowned variables.