I'd love to see DScript one day ...

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 15 05:14:45 PDT 2016


On Wednesday, 15 June 2016 at 11:33:23 UTC, Chris wrote:
> But Python for example doesn't care.

Python is fairly dynamic and static analysis tools such as 
PyCharm helps a lot when you write larger Python projects.

> What you describe is basically trying to mimic static typing.

No, you can have something like this:

var  x = f(42);

if(x>100) freeze x;

// whether x is immutable or not is not statically known at this 
point




More information about the Digitalmars-d mailing list