Re: [Vala] Proper Syntax for Array of Nullable Strings

Frederik píše v St 20. 01. 2010 v 23:34 +0100:
Sam Wilson wrote:
Subject: Re: [Vala] Proper Syntax for Array of Nullable Strings
From: zarevucky jiri gmail com
To: tecywiz121 hotmail com
CC: vala-list gnome org
Date: Wed, 20 Jan 2010 23:08:19 +0100

tecywiz121 píše v St 20. 01. 2010 v 16:49 -0500:
I am just wondering if it is possible to have an array of nullable
strings, and if so, what is the proper syntax?


I believe array of class type can always contain nulls. Or am I

Doesn't that defeat the purpose of having non-nullable types by default?

Yes. However, Vala is more strict with --enable-experimental-non-null.
Without it Vala will only check method arguments.

What is the point of having Vala check it everywhere? I expect
programmer to know what is going on inside a method/class he wrote.
Input and output values are being checked and that's IMO perfectly

Imagine it like checking your identity at nation borders - you don't
need to identify yourself before entering every building, that's just
pointless. At least that's my opinion.

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

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