Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-22 Thread Steven Schveighoffer via Digitalmars-d
On 1/21/15 1:39 PM, Walter Bright wrote: On 1/21/2015 8:23 AM, ketmar via Digitalmars-d wrote: this simply not work. Neither does Windows Moviemaker. It hung again on me. Just FYI iMovie works just fine ;) and not worth it. WMM is over a decade old, and it still hangs doing something as

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-22 Thread Kagamin via Digitalmars-d
On Wednesday, 21 January 2015 at 08:41:47 UTC, Walter Bright wrote: I wonder why software companies still make it impossible to submit bug reports. For example, google: submit windows movie maker bug report Click on Reporting and solving computer problems - Windows:

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-22 Thread Steven Schveighoffer via Digitalmars-d
On 1/22/15 12:03 PM, Walter Bright wrote: On 1/22/2015 4:44 AM, Steven Schveighoffer wrote: But I am surprised MS does not have some way to get reasonable paid support for their software. Apple gives you 1 year free software/hardware support when you buy a Mac. I can fully understand not

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-22 Thread Walter Bright via Digitalmars-d
On 1/22/2015 4:44 AM, Steven Schveighoffer wrote: But I am surprised MS does not have some way to get reasonable paid support for their software. Apple gives you 1 year free software/hardware support when you buy a Mac. I can fully understand not offering Free support. Not everyone is a Walter

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 10:39:14 -0800 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: Why even ship such a product you have no intention of fixing bugs for? It's a net negative for one's image. ah, that's a different question! i don't know why they still shipping it instead of

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Andrei Alexandrescu via Digitalmars-d
On 1/21/15 10:45 AM, Walter Bright wrote: On 1/21/2015 7:40 AM, Andrei Alexandrescu wrote: there's plenty of video processing software in the free world. About 10 years ago, I needed to edit a movie. I downloaded about 10 different video editors. Every one would hang, crash, go berserk,

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 8:23 AM, ketmar via Digitalmars-d wrote: this simply not work. Neither does Windows Moviemaker. It hung again on me. and not worth it. WMM is over a decade old, and it still hangs doing something as simple as trimming off the start and the end. And not rarely, either. It does

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 7:40 AM, Andrei Alexandrescu wrote: there's plenty of video processing software in the free world. About 10 years ago, I needed to edit a movie. I downloaded about 10 different video editors. Every one would hang, crash, go berserk, generate corrupt files, etc. I didn't do

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 10:53 AM, Andrei Alexandrescu wrote: On 1/21/15 10:45 AM, Walter Bright wrote: It left such bad taste I was unwilling to try it again until recently. I'm disgusted that the problems remain. How hard can it be? 10 years is a long time -- Andrei Right, which is why I'm disgusted

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 11:03 AM, Brad Roberts via Digitalmars-d wrote: I'll note, for what it's worth, that there's open bug reports against D that are almost 9 years old... oldest open bug was filed in May of 2006. Some of them fairly fundamental. All software has bugs. But trimming a video is the

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 21, 2015 at 10:45:26AM -0800, Walter Bright via Digitalmars-d wrote: On 1/21/2015 7:40 AM, Andrei Alexandrescu wrote: there's plenty of video processing software in the free world. About 10 years ago, I needed to edit a movie. I downloaded about 10 different video editors. Every

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Brad Roberts via Digitalmars-d
On 1/21/2015 10:53 AM, Andrei Alexandrescu via Digitalmars-d wrote: On 1/21/15 10:45 AM, Walter Bright wrote: On 1/21/2015 7:40 AM, Andrei Alexandrescu wrote: there's plenty of video processing software in the free world. About 10 years ago, I needed to edit a movie. I downloaded about 10

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Andrei Alexandrescu via Digitalmars-d
On 1/21/15 1:14 AM, Joakim wrote: On Wednesday, 21 January 2015 at 08:41:47 UTC, Walter Bright wrote: On 1/21/2015 12:19 AM, Russel Winder via Digitalmars-d wrote: The Emacs D-Mode will only improve if people provide bug reports and fixes. A number of people are doing this for their pain

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:40:48 -0800 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: I find this utterly baffling. Why make it so difficult to report a bug? Microsoft has always been like this, the only way I've ever been able to submit a bug report was if I had a friend

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-21 Thread Danni Coy via Digitalmars-d
regular expression search FunctionName.*\{ or FunctionName.*$\s*\{ depending on brace style On Wed, Jan 21, 2015 at 4:37 AM, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 00:13:37 UTC, Brian Schott wrote: On Monday, 19 January 2015 at 22:49:41 UTC,

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 1:14 AM, Joakim wrote: Probably because Microsoft has so many millions of users that their bug tracker would be awash with noise. Google allows anybody with a google account to post bugs or comment on them for Chrome and Android, which has led to a ton of noise on their public bug

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 12:59 AM, Russel Winder via Digitalmars-d wrote: Whereas for Emacs D-Mode you rock up to https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues and post. There is no guarantee of action though since there is no-one paid to do support, it's all volunteer activity. However

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Russel Winder via Digitalmars-d
Whereas for Emacs D-Mode you rock up to https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues and post. There is no guarantee of action though since there is no-one paid to do support, it's all volunteer activity. However a number of people do hack on the ELisp and fix things. All

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Russel Winder via Digitalmars-d
On Tue, 2015-01-20 at 20:30 +, Jonathan Marler via Digitalmars-d wrote: […] Which editor do you use? I use emacs. It has some quirks. The D-Mode doesn't work very well (I end up using Notepad++ when working on phobos/druntime), but I can use it on every platform and over a remote tty

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Walter Bright via Digitalmars-d
On 1/21/2015 12:19 AM, Russel Winder via Digitalmars-d wrote: The Emacs D-Mode will only improve if people provide bug reports and fixes. A number of people are doing this for their pain points. If the Emacs D-Mode is substandard for you, can you at least submit issues presenting the problems.

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread Joakim via Digitalmars-d
On Wednesday, 21 January 2015 at 08:41:47 UTC, Walter Bright wrote: On 1/21/2015 12:19 AM, Russel Winder via Digitalmars-d wrote: The Emacs D-Mode will only improve if people provide bug reports and fixes. A number of people are doing this for their pain points. If the Emacs D-Mode is

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Kagamin via Digitalmars-d
On Monday, 19 January 2015 at 20:51:03 UTC, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next D version may

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Steven Schveighoffer via Digitalmars-d
On 1/19/15 8:35 PM, Ary Borenszweig wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D for

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread MattCoder via Digitalmars-d
On Tuesday, 20 January 2015 at 13:47:11 UTC, ketmar via Digitalmars-d wrote: void function foo () { ... } foo(); do you see the subtle difference? yes, that tiny whitespace in declaration. i borrowed that habit from some Oberon code decades ago, and it serves me well since then. Hmm,

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Mon, 19 Jan 2015 22:35:16 -0300 Ary Borenszweig via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 13:49:47 + MattCoder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 13:47:11 UTC, ketmar via Digitalmars-d wrote: void function foo () { ... } foo(); do you see the subtle difference? yes, that tiny whitespace in

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Joakim via Digitalmars-d
On Tuesday, 20 January 2015 at 00:13:37 UTC, Brian Schott wrote: On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? Running `dscanner --help` prints this: --declaration | -d symbolName [sourceFiles

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Walter Bright via Digitalmars-d
On 1/20/2015 12:30 PM, Jonathan Marler wrote: Which editor do you use? https://github.com/DigitalMars/me

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 20 January 2015 at 03:28:29 UTC, Walter Bright wrote: On 1/19/2015 7:20 PM, Walter Bright wrote: Yes. Search Again is a single button press. It really has never occurred to me that this might be a problem needing a solution. I admit that I've never gotten in to using an IDE. I

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:30:00 + Jonathan Marler via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 03:28:29 UTC, Walter Bright wrote: On 1/19/2015 7:20 PM, Walter Bright wrote: Yes. Search Again is a single button press. It really has never occurred to

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread Danni Coy via Digitalmars-d
So... how do you search for a function definition in D without an IDE? Regular Expression Search for FunctionName.*\n\s*\{ or FunctionName.*\{ depending on brace style being used.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Vlad Levenfeld via Digitalmars-d
On Tuesday, 20 January 2015 at 01:35:17 UTC, Ary Borenszweig wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Ary Borenszweig via Digitalmars-d
On 1/19/15 6:25 PM, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread deadalnix via Digitalmars-d
On Monday, 19 January 2015 at 21:06:40 UTC, Alexey T. wrote: Better that next D version (next MAJOR version) can support such syntax. (Old syntax may be compatible too but deprecated). What developers think.. That why not is a not a good enough reason to do it.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread weaselcat via Digitalmars-d
On Tuesday, 20 January 2015 at 00:13:37 UTC, Brian Schott wrote: On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? Running `dscanner --help` prints this: --declaration | -d symbolName [sourceFiles

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Walter Bright via Digitalmars-d
On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D for 30 years without an IDE. It never occurred to me that this was not doable :-)

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Walter Bright via Digitalmars-d
On 1/19/2015 2:51 PM, ponce wrote: Current syntax is akin to C and C++, it means many people already read it visually and it is easier to port C code to D. Bingo. It's designed to be an easy transition for people used to programming in C, C++ and Java.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Israel via Digitalmars-d
On Monday, 19 January 2015 at 21:25:16 UTC, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult;

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Andrei Alexandrescu via Digitalmars-d
On 1/19/15 3:43 PM, Ary Borenszweig wrote: On 1/19/15 7:54 PM, Andrei Alexandrescu wrote: On 1/19/15 2:49 PM, Ary Borenszweig wrote: On 1/19/15 6:25 PM, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Ary Borenszweig via Digitalmars-d
On 1/19/15 7:54 PM, Andrei Alexandrescu wrote: On 1/19/15 2:49 PM, Ary Borenszweig wrote: On 1/19/15 6:25 PM, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread H. S. Teoh via Digitalmars-d
On Mon, Jan 19, 2015 at 04:17:08PM -0800, Walter Bright via Digitalmars-d wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D for

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Ary Borenszweig via Digitalmars-d
On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D for 30 years without an IDE. It never occurred

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Walter Bright via Digitalmars-d
On 1/19/2015 5:35 PM, Ary Borenszweig wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread deadalnix via Digitalmars-d
On Tuesday, 20 January 2015 at 03:12:52 UTC, Andrei Alexandrescu wrote: Tel maître, tel valet. -- Andrei Will ruby now park cars ?

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread ponce via Digitalmars-d
On Monday, 19 January 2015 at 22:18:34 UTC, Alexey T. wrote: Ok I see your arguments, indeed, breaking masss of code isn't good (even with deprecated flag). So leave it as is (it is TOO LATE to change this) Current syntax is akin to C and C++, it means many people already read it visually

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Andrei Alexandrescu via Digitalmars-d
On 1/19/15 2:49 PM, Ary Borenszweig wrote: On 1/19/15 6:25 PM, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) -

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Brian Schott via Digitalmars-d
On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? Running `dscanner --help` prints this: --declaration | -d symbolName [sourceFiles sourceDirectories] Find the location where symbolName is declared.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Jon via Digitalmars-d
On Tuesday, 20 January 2015 at 01:35:17 UTC, Ary Borenszweig wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Walter Bright via Digitalmars-d
On 1/19/2015 7:20 PM, Walter Bright wrote: Yes. Search Again is a single button press. It really has never occurred to me that this might be a problem needing a solution. I admit that I've never gotten in to using an IDE. I still have complaints about the programmer's editor I use, but they

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Walter Bright via Digitalmars-d
On 1/19/2015 1:23 PM, Jonathan Marler wrote: I'm not familiar enough with the syntax grammar to say for sure whether or not this would make it easier to parse the language. This idea is not going to make the parsing any better.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread weaselcat via Digitalmars-d
On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig wrote: On 1/19/15 6:25 PM, Andrei Alexandrescu wrote: On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Dicebot via Digitalmars-d
On Monday, 19 January 2015 at 22:54:04 UTC, Andrei Alexandrescu wrote: I abandon D and switch to Ruby. -- Andrei You should make a front page announcement.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Rikki Cattermole via Digitalmars-d
On 20/01/2015 1:17 p.m., Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the name of the function. I've been programming in C, C++, and D for 30 years without an IDE. It never

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Mike Parker via Digitalmars-d
On 1/20/2015 7:49 AM, Ary Borenszweig wrote: It works, but if you stop following that convention you are lost. So... how do you search for a function definition in D without an IDE? Case-insensitive search on funcname( usually works for me.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Jonathan M Davis via Digitalmars-d
On Monday, January 19, 2015 16:18:25 Walter Bright via Digitalmars-d wrote: On 1/19/2015 2:51 PM, ponce wrote: Current syntax is akin to C and C++, it means many people already read it visually and it is easier to port C code to D. Bingo. It's designed to be an easy transition for people

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Jonathan M Davis via Digitalmars-d
On Monday, January 19, 2015 20:51:02 Alexey T. via Digitalmars-d wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next D version

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Alexey T. via Digitalmars-d
Ok I see your arguments, indeed, breaking masss of code isn't good (even with deprecated flag). So leave it as is (it is TOO LATE to change this)

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Alexey T. via Digitalmars-d
Better that next D version (next MAJOR version) can support such syntax. (Old syntax may be compatible too but deprecated). What developers think..

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Jonathan Marler via Digitalmars-d
On Monday, 19 January 2015 at 21:06:40 UTC, Alexey T. wrote: Better that next D version (next MAJOR version) can support such syntax. (Old syntax may be compatible too but deprecated). What developers think.. I have a feeling you might get some strong opposition to this idea *Brace

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Andrei Alexandrescu via Digitalmars-d
On 1/19/15 12:51 PM, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next D version may allow--with compatability of old

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread bachmeier via Digitalmars-d
On Monday, 19 January 2015 at 20:51:03 UTC, Alexey T. wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next D version may

Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Alexey T. via Digitalmars-d
Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to read and PARSE. Next D version may allow--with compatability of old syntad (C like where typeOfResult is

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread ketmar via Digitalmars-d
On Mon, 19 Jan 2015 20:51:02 + Alexey T. via Digitalmars-d digitalmars-d@puremagic.com wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to