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

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

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,

Re: Verbosity in D

2022-08-07 Thread Emanuele Torre via Digitalmars-d-learn
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 sanity-conserving restrictions on one hand, and more verbose syntax on the other. It was a

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.

Re: Verbosity in D

2022-08-07 Thread pascal111 via Digitalmars-d-learn
techniques that clean verbosity from D? Quote: "In terms of functionality, Pascal is pretty much exactly the same as C, except with some sanity-conserving restrictions on one hand, and more verbose syntax on the other. It was an okay language for the time when it was popular, and I would giv

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 o

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; };

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) {

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
that clean verbosity from D? That's not clear to me at all, and your Pascal example about a feature that C and D both have, that doesn't help either. Post some code that seems particularly verbose to you. I think 'library code' tends to grow attributes like mushrooms, and that D gets longer wh

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

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, e