October 25, 2013
On 10/25/2013 6:15 AM, eles wrote:
> It is a specific reason why this is kept?:
>
> http://forum.dlang.org/thread/ohduisigpwdiqhpdewdz@forum.dlang.org#post-btwbpwgluzyxmhphwebp:40forum.dlang.org


Breaking peoples' build scripts and makefiles is not nice :-)
October 26, 2013
On Friday, 25 October 2013 at 20:24:48 UTC, Walter Bright wrote:
> On 10/25/2013 6:15 AM, eles wrote:
> Breaking peoples' build scripts and makefiles is not nice :-)

On the same grounds, you could recommend them dmc.

Provide, at least, a flag that passes the file without name change, for example:

dmd -ntest

will really pass "test" file and not test.d.

Why working so hard to do a good language if you work even harder to provide the worst of tooling?

October 26, 2013
On Friday, 25 October 2013 at 15:57:27 UTC, Namespace wrote:
> On Friday, 25 October 2013 at 13:24:12 UTC, eles wrote:
>> On Saturday, 12 October 2013 at 22:16:13 UTC, Walter Bright
> When was decided to add this? I would love it, but I cannot remember that this was decided.

Well, like many other ideas of its kind, Walter expressed "sympathy" for it, then fall into oblivion...

Unfortunately, D puts a lot of effort in doing great things, but all the nice nuts and bolts that would make our life easire and require no more than one LOC change in dmd's source tend to be forgotten.

Somebody complained about lack of vision in D development. Don't be upset on me, but I really feel the same.

"People come, tried to do things... and left".
October 26, 2013
On 10/26/2013 12:42 AM, eles wrote:
> Provide, at least, a flag that passes the file without name change, for example:
>
> dmd -ntest
>
> will really pass "test" file and not test.d.

I'm curious why naming the file test.d is an issue?

October 26, 2013
On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
> On 10/26/2013 12:42 AM, eles wrote:
>
> I'm curious why naming the file test.d is an issue?

Case:

This forces scrpts to bear the .d extension. For example, if you write a script on Linux named "git-test" and you put at the top:

#!rdmd

rdmd will pass its name to dmd, and dmd will try to compile... "git-test.d", which does not exist.

Now, you have either to rename the "git-test" into "git-test.d", or to create a hardlink named "git-test.d" that points towards "git-test" so that dmd finally gets satisfied its ".d" hungriness.

The solution with the hardlink carries the well-known burdness of redundancy, let's not even say its idiot and makes back-up-ing a mess.

OTOH, renaming the original script into "git-test.d" has the undesirable effect wrt to git software.

git uses some nice convention that you can extend its command list by writing your own "git-command1", "git-command2" scripts and they are invoked automatically by git when you type:

"git command1" (this will invoke "git-command1") etc.

The problem with being forced to rename "git-command1" into "git-command1.d" is that, afterwards, you have to type the following command for git:

"git command1.d" (in order to have the "git-command1.d" invoked, as "git-command1" simply does not exist or, if it would exist, dmd would be blind about it).

SO, you cannot type "git command1" and to have a "git-command1" script invoked, because git won't search for "git-command1.d", while dmd won't compile "git-command1".

So you need both "git-command1" and "git-command1.d" doing the same thing, just to be able to type "git command1" (not even say that this allows you to invoke, also "git comman1.d", which is ugly and undesired redundancy).

Now, immagine yourself having to type:

"git checkout.d ."
"git commit.d"
"git log.d"

instead of

"git checkout ."
"git commit"
"git log"

and tell me that ".d" is not an issue.

Please have a look at the original thread that I linked and you'll see the problem.

What use for scripting in D if I am unable to do some simple scripts because of the compiler?
October 26, 2013
On 10/26/2013 2:02 AM, eles wrote:
> On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
>> I'm curious why naming the file test.d is an issue?
>
> Case:

Thanks for the clear explanation. It makes a lot of sense. Let me think about it for a bit.

October 26, 2013
On 10/26/2013 2:02 AM, eles wrote:
> On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
>> On 10/26/2013 12:42 AM, eles wrote:
>>
>> I'm curious why naming the file test.d is an issue?
>
> Case:

http://d.puremagic.com/issues/show_bug.cgi?id=11365

October 26, 2013
On Saturday, 26 October 2013 at 21:11:02 UTC, Walter Bright wrote:
> On 10/26/2013 2:02 AM, eles wrote:
>> On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
>>> On 10/26/2013 12:42 AM, eles wrote:
>>>
> http://d.puremagic.com/issues/show_bug.cgi?id=11365

Thank you for considering it.
October 31, 2013
On Saturday, 26 October 2013 at 22:35:14 UTC, eles wrote:
> On Saturday, 26 October 2013 at 21:11:02 UTC, Walter Bright wrote:
>> On 10/26/2013 2:02 AM, eles wrote:
>>> On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
>>>> On 10/26/2013 12:42 AM, eles wrote:
> Thank you for considering it.

I cannot comment on the bugzilla, but frankly I do not like those comments at all.

Why cannot I name my scripts like:

script.no1
script.no2
script.no3

?

Must always use script_no1 or script_no1.d?

What is this conservationism? You have a very nice way to cut a programmer's arms and legs and then yell at him why he does not run or swim faster.

Just let the poor guy name the scripts how he really likes it.

Speaking about that, why DMD's source files are written in C++ but bear extension .c?

You seem to appreciate for yourselves a freedom that he denies to others.
October 31, 2013
On Thursday, 31 October 2013 at 14:16:22 UTC, eles wrote:
> On Saturday, 26 October 2013 at 22:35:14 UTC, eles wrote:
>> On Saturday, 26 October 2013 at 21:11:02 UTC, Walter Bright wrote:
>>> On 10/26/2013 2:02 AM, eles wrote:
>>>> On Saturday, 26 October 2013 at 08:36:53 UTC, Walter Bright wrote:
>>>>> On 10/26/2013 12:42 AM, eles wrote:

> You seem to appreciate for yourselves a freedom that he denies to others.

And +1 for Leandro. The day that D was declared to serve some useful purpose is the day when D gave up the right to be just a toy.

Hey! I work in production! Somebody hears that?