help with prime pairs code
user1234
user1234 at 12.de
Sun Feb 2 01:12:59 UTC 2025
On Saturday, 1 February 2025 at 21:56:23 UTC, Jabari Zakiya wrote:
> On Saturday, 1 February 2025 at 00:21:22 UTC, user1234 wrote:
>> On Friday, 31 January 2025 at 20:05:54 UTC, Jabari Zakiya
>> wrote:
>>> [...]
>>
>> A first draft of the translation, not very idiomatic D code:
>>
>> ```d
>> module prime_pairs;
>> import std;
>>
>> [...]
>
> Thank you very much!
>
> As you can see, D is not my primary language, but I respect its
> speed and readability.
> I also have a faster Crystal version, almost identical (96%) to
> the Rudy code.
yeah Crystal is in my scope. Whyle I'm usualy not into dynamic
typed langs, there's something I like in the Crystal lang.
> I'm implementing it in different languages, partly as a way to
> learn them with a real task.
>
> I'll study the D code thoroughly to conceptually understand the
> idioms used int it.
> I, like you, also wait to see a "beautiful" version done.
More information about the Digitalmars-d-learn
mailing list