I'd love to see DScript one day ...
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 14 06:04:32 PDT 2016
On Tuesday, 14 June 2016 at 12:57:01 UTC, Chris wrote:
> Dynamic typing should only be allowed to the extend `auto`
> works:
>
> var name = "Herbert"
> // ...
> name = "Brown" // ok
>
> name = 5 // error
So
var name = "Herbert";
name = "Brown";
name = 5;
that will literally compiler in D today if you stick an "import
arsd.jsvar;" in there too :)
That's where my script.d came from - I wanted to see how closely
I could simulate a "var" type in D itself, then got so close I
decided to add a thin dynamic script around it too. But since the
script and D both use the very same var type, the interop is easy.
More information about the Digitalmars-d
mailing list