Why is `scope` planned for deprecation?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 16 14:18:40 PST 2014


On Sun, 16 Nov 2014 22:09:00 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Sunday, 16 November 2014 at 22:00:10 UTC, ketmar via 
> Digitalmars-d wrote:
> > that's why warp is faster than cpp? ;-)
> Which implementation of cpp?
gcc implementation, afair. it's slowness was the reason for warping.

> (Btw, take a look at lexer.c in DMD :-P)
c++ has no good string type, so there is no much choice.

as a writer of at least four "serious" scripting languages (and alot
more as "toy" ones) i can tell you that zero-terminated strings are
PITA. the only sane way to write a good lexer is working with structure
which emulates D string and slicing (if we must parse text from
in-memory buffer, of course).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141117/a06ea27a/attachment-0001.sig>


More information about the Digitalmars-d mailing list