HackerTrans
TopNewTrendsCommentsPastAskShowJobs

superamadeus

no profile record

comments

superamadeus
·2 năm trước·discuss
Most likely for Docker/container users using Alpine Linux or similar.
superamadeus
·2 năm trước·discuss
This is really neat, thank you for sharing!
superamadeus
·2 năm trước·discuss
I had the same initial reaction, but it turns out that if you have at least one private member, even with the same signature, it works as the parent comment suggests.

For example, these two classes are distinct to TypeScript:

    class Name {
        constructor(private value: string) {}

        getValue() {
            return this.value;
        }
    }

    class Email {
        constructor(private value: string) {}

        getValue() {
            return this.value;
        }
    }

    const email: Email = new Name(“Tim”); // Error: (paraphrasing) conflicting private declaration of “value”.
superamadeus
·2 năm trước·discuss
Oh, fantastic. Thank you!
superamadeus
·2 năm trước·discuss
Is there any discussion or in-depth explanation of the syntax choices? I understand that a goal was context free unambiguous parsing. But there are some things that surprise me.

For example, string interpolation:

    "Hello, (msg)$!\n"
Why “(msg)$” and not “$(msg)”? Surely the latter is easier to parse?
superamadeus
·4 năm trước·discuss
The results described in the article talk about weight loss mostly in overweight and obese individuals. The other health benefits are improved blood sugar regulation and insulin sensitivity when eating in the morning rather than at night.

The book “How Not to Diet” by Dr. Michael Greger has a section about this, referencing similar studies.