http://stackoverflow.com/questions/1814922/what-does-this-mean-in-pascal
1. more implicit access : C's ->

http://live.gnome.org/action/diff/Vala/Tutorial?action=diff&rev1=214&rev2=215#line-1652
2. more explicit argument passing

go usage case:
https://bitbucket.org/rj/golang-javascriptcore/src/46d4ce32dcaf/native_test.go
vala usage case:
https://github.com/crystalnix/vala-v8/blob/master/vala-api/importer.vala

C case:
  char *s[5];
go case:
  args []*Value
vala case:
  unowned string namespace
Pascal case:
  var s: array[0..4] of pointer;

3. parser tend to like easy parsing syntax

Personally think that 'unowned' is easy searching and unambiguous word.
But, I often mistype 'unowned' to 'unowend'... so +1.

2011/6/22, Serge Hulne <[email protected]>:
> 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.
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to