Re: Verbosity in D

2022-08-08 Thread bauss via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:11:33 UTC, pascal111 wrote: I don't have specific code but it was a general notice. Take Python as in example, the same program in Python doesn't cost much code as D code, and of course by putting in accounts that that I assume that there are some special tasks

Re: Verbosity in D

2022-08-07 Thread Siemargl via Digitalmars-d-learn
On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that clean verbosity from D? In most cases this is a false statement.

Re: Verbosity in D

2022-08-07 Thread Dom Disc via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:40:11 UTC, TTK Ciar wrote: On the other hand, I've noticed that D's idiomatic brevity can be diluted by the extremely verbose function names used in the standard library. For long function names you can define short aliases, for syntax you can't. So having short

Re: Verbosity in D

2022-08-07 Thread TTK Ciar via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:11:33 UTC, pascal111 wrote: I don't have specific code but it was a general notice. Take Python as in example, the same program in Python doesn't cost much code as D code, and of course by putting in accounts that that I assume that there are some special tasks D

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:18:12 UTC, Emanuele Torre wrote: On Monday, 8 August 2022 at 00:11:33 UTC, pascal111 wrote: [...] You are just sounding like a troll now... "troll" :) I like it! That makes no sense: "I assume that there are some special tasks D can do, while Python can't

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:15:48 UTC, pascal111 wrote: On Sunday, 7 August 2022 at 23:44:26 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 23:31:45 UTC, pascal111 wrote: On Sunday, 7 August 2022 at 22:16:55 UTC, Emanuele Torre wrote: [...] It seems complex, I didn't get it yet, I

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Monday, 8 August 2022 at 00:11:33 UTC, pascal111 wrote: On Sunday, 7 August 2022 at 23:53:36 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any p

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
On Sunday, 7 August 2022 at 23:44:26 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 23:31:45 UTC, pascal111 wrote: On Sunday, 7 August 2022 at 22:16:55 UTC, Emanuele Torre wrote: [...] It seems complex, I didn't get it yet, I wished I didn't ask about it :) It's really trivial. `au

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
On Sunday, 7 August 2022 at 23:53:36 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that cle

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that clean verbosity from D? Quote: "In terms of functionality, Pascal

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Sunday, 7 August 2022 at 23:44:26 UTC, Emanuele Torre wrote: int[] arr = { 10, 12, 14 }; Oops, this is C++, not D: `int arr[] = { 10, 12, 14 };` =)

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Sunday, 7 August 2022 at 23:31:45 UTC, pascal111 wrote: On Sunday, 7 August 2022 at 22:16:55 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 20:15:05 UTC, pascal111 wrote: What destructuring binds? I didn't hear about that before. ```C++ #include struct Point { int x, y; }; P

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
On Sunday, 7 August 2022 at 22:16:55 UTC, Emanuele Torre wrote: On Sunday, 7 August 2022 at 20:15:05 UTC, pascal111 wrote: What destructuring binds? I didn't hear about that before. ```C++ #include struct Point { int x, y; }; Point add_points(const Point& a, const Point& b) { return

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
On Sunday, 7 August 2022 at 20:15:05 UTC, pascal111 wrote: What destructuring binds? I didn't hear about that before. ```C++ #include struct Point { int x, y; }; Point add_points(const Point& a, const Point& b) { return { a.x + b.x, a.y + b.y }; } int main() { const auto [x, y]

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
On Sunday, 7 August 2022 at 16:45:15 UTC, jfondren wrote: On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that clean ve

Re: Verbosity in D

2022-08-07 Thread jfondren via Digitalmars-d-learn
On Sunday, 7 August 2022 at 16:01:08 UTC, pascal111 wrote: It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that clean verbosity from D? That's not clear to me at all, and your P

Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
It's clear by working with D that it has the same bad point like Pascal language; the "verbosity". Is there any plans in future to make some shorthanded techniques that clean verbosity from D? Quote: "In terms of functionality, Pascal is pretty much exactly the same as C, except with some sani