[Vala] Proposal for a an alias (a symbol) for the keyword "unowned"



Since it appears that:

string a = "hello";
unowned string b = a;

and

string  a = "hello";
string *b = a;

are not exactly the same.


I would like to propose basically a symbolic alias for unowned, namely:

string  a = "hello";
string ^ b = a; //  equivalent for: unowned string b = a;

("^" is a symbol borrowed from the Pascal language)

I think it increases readability and it is faster to type.

Serge.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]