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: Is there such concept of a list in D?

2022-12-12 Thread TTK Ciar via Digitalmars-d-learn
On Sunday, 11 December 2022 at 17:45:20 UTC, ryuukk_ wrote: Why is it called ``DList`` and not just ``List``, i have no clue Probably because it is a *D*ouble-linked List :-)

Re: How to create a API server?

2022-12-16 Thread TTK Ciar via Digitalmars-d-learn
On Friday, 16 December 2022 at 20:57:30 UTC, Dariu Drew wrote: Hi! i need help in can i create a serve API, what library i should use? what documentation i should read? The arsd package includes arsd.http2 which makes it easy to implement API servers with very little code. https://code.dlang

Re: How to create a API server?

2022-12-18 Thread TTK Ciar via Digitalmars-d-learn
On Friday, 16 December 2022 at 22:10:37 UTC, TTK Ciar wrote: On Friday, 16 December 2022 at 20:57:30 UTC, Dariu Drew wrote: Hi! i need help in can i create a serve API, what library i should use? what documentation i should read? The arsd package includes arsd.http2 which makes it easy to imp

Re: How to unpack a tuple into multiple variables?

2024-02-05 Thread TTK Ciar via Digitalmars-d-learn
I've been using AliasSeq for that (and aliasing it to "put" for easier use): ```d import std.meta; alias put = AliasSeq; auto foo() { return tuple(1, 2, 3); } int main(string[] args) { int x, y, z; put!(x, y, z) = foo(); writeln(x, y, z); return 0; } ``` My mnemonic: "put" is "tup" b