Empty array and type NULL

Thiago Macieira thiago at kde.org
Mon Aug 20 04:45:20 PDT 2012


On segunda-feira, 20 de agosto de 2012 16.35.09, Denis Davydov wrote:
> Sorry for my english.
> 
> I have two questions, google don't help.
> 
> 1. Why I can't use empty container, array for example? This is normal
> situations in many languages.

You can.

> 2. Why don't exist NULL type or analog? Maybe exist reserved type for self
> extensions?

We didn't feel that was necessary, though some extensions have been proposed 
for that, like maybe-types.

You can simulate this feature by using an array of size 0 or 1.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120820/9c213181/attachment.pgp>


More information about the dbus mailing list