Idea: Introduce zero-terminated string specifier
Rob T
rob at ucora.com
Mon Oct 1 01:03:23 PDT 2012
On Monday, 1 October 2012 at 06:58:41 UTC, Paulo Pinto wrote:
> You should anyway wrap those APIs not to pollute D call with
> lower level APIs.
I have to agree, esp when it applies to pointers.
We should not forget that one of the objectives of D is to make
coding "safe" by getting rid of the need to use pointers and
other unsafe features. It encourages safe practice by making safe
practice much easier to do than using unsafe practice. It however
allows unsafe practice where necessary, but the programmer has to
intentionally do something extra to make that happen.
I think the suggestion of introducing a null string specifier
fundamentally goes against the objectives of D, and if introduced
will unltimately degrade the quality of the language.
--rt
More information about the Digitalmars-d
mailing list