Improve D's syntax to make it more python like
Colden Cullen
ColdenCullen at gmail.com
Sat Mar 22 18:08:48 PDT 2014
On Saturday, 22 March 2014 at 17:28:16 UTC, Andrei Alexandrescu
wrote:
> On 3/22/14, 9:19 AM, MattCoder wrote:
>> On Saturday, 22 March 2014 at 01:22:14 UTC, Andrei Alexandrescu
>> wrote:
>>> ...Given D's compilation speed, that can be achieved as a
>>> dialect
>>> without much aggravation by using a preprocessor.
>>>
>>> In fact I considered writing such a preprocessor as a running
>>> example...
>>
>> Please someone could show a little example of the quote above?
>> I
>> mean it would act like C preprocessor or in D it has another
>> meaning?
>
> As simple as it gets. The program would translate files with
> extension ".wsd" into files with extension ".d" and run dmd (or
> rdmd) transparently. Appropriate handling of file timestamps
> etc. would complete a nice utility. You'd use it like
>
> wsd myscript.wsd
>
> which under the hood would create (if necessary) myscript.d and
> then exec rdmd on it.
>
>
> Andrei
After far too many hours on a plane today, I ended up building
this[1]. This is very much a proof of concept, and not production
ready in the slightest.
I should point out that the extensibility and maintainability of
this is roughly equivalent to that of a potato, but it serves its
purpose decently well.
[1] https://github.com/ColdenCullen/wsd
More information about the Digitalmars-d
mailing list