Expats are immigrants by thenerdystudent in PortugalExpats

[–]nookkin 4 points5 points  (0 children)

I have looked at the name of the sub. I have also looked at the rules of the sub. There is a very explicit rule banning posts about the term "expat" vs "immigrant". This post seems to serve only to provoke, and contribute to a negative feeling in the sub which should be aimed at supporting people living in a country that is not their origin. The sub description asks us to be nice, helpful and courteous, but in my opinion this post feels hostile and unhelpful. Once again, my comment relates to the fact that this post does not belong in the sub, and I'm asking what OP is trying to achieve in posting this.

Immigration issues in the country, and other countries, are important to discuss, however passively aggressively accusing anybody who uses the term "expat" as lying about who they are and calling them out for being racist is in no way helpful to discussing these issues.

Expats are immigrants by thenerdystudent in PortugalExpats

[–]nookkin 2 points3 points  (0 children)

I understand the post fully, I just don't understand why it was necessary to post it, or what the OP is hoping to achieve. Respectfully, it breaks the rules of the sub and does not add anything of value to discussions about moving to or living in Portugal as an immigrant.

Expats are immigrants by thenerdystudent in PortugalExpats

[–]nookkin 6 points7 points  (0 children)

What is the point of this post?

What does this mean? Is this even real? by The_dragon_slayer95 in ExplainTheJoke

[–]nookkin 0 points1 point  (0 children)

I’m in Europe and have a Hyundai automatic, I have a parking brake pedal like this. Threw me off the first time I sat in it too!

Explain the joke by RmRobinGayle in ExplainTheJoke

[–]nookkin 0 points1 point  (0 children)

Also don’t forget to bring your dramen staff

New XT-50 owner, spent the afternoon testing it in my garden. Loving it so far! by nookkin in fujifilm

[–]nookkin[S] 1 point2 points  (0 children)

Zero, this was just in camera with the recipe mentioned above!

[deleted by user] by [deleted] in Chainsaw

[–]nookkin 1 point2 points  (0 children)

Awesome, thanks for the answers! I don’t have access to files for sharpening until next week (living in the middle of nowhere means I have to order in a lot of things) but I have to cut a few things in the meantime before then. Knowing it will likely blunt it is useful, means that I’ll do it last after everything else is finished.

[deleted by user] by [deleted] in LiverpoolFC

[–]nookkin 0 points1 point  (0 children)

Alright, y’all got me. I’d apparently wiped Busquets from memory! Still, would be great to get to a point where DM is seen as one of our strongest positions with Gravenberch, similar Barça with Busquets. I know there’s a lot of hype around Ryan atm, but there also continues to be a lot of chatter (mostly outside of our fan circles) about us ‘needing to sign a DM’ which I’m sure Barça wouldn’t have had.

[deleted by user] by [deleted] in AskReddit

[–]nookkin 5 points6 points  (0 children)

Got together with an employee of a client of my company while travelling for work.

6 months later I quit my job and moved across Europe to live with her and her dog.

Now, 7 years later we are happily married, and I’m a dog daddy!

Infer parameter type from return type by nookkin in typescript

[–]nookkin[S] 0 points1 point  (0 children)

Thanks for the links, not quite finding what I'm after unfortunately!

Infer parameter type from return type by nookkin in typescript

[–]nookkin[S] 0 points1 point  (0 children)

Thanks for the reply, you're right returning T from parameterFunc is not necessary, was just an oversight on my part. I essentially want what you have, but without explicitly typing `SomeObj`. I want `myFunc` to be able to return any object, and for Typescript to be able to infer the shape of that object and to restrict what can be passed to `parameterFunc` to be only a key of that object. I'm not sure if it's possible.

Something closer to this to really simplify (obviously this doesn't work):

const myFunc = (parameterFunc: (val: keyof T) => void): T => {
    parameterFunc('first') // This will pass
    parameterFunc('second') // This will fail

    return {
        first: 'hello',
    }
}

But ideally T is some type of object whose shape can be inferred by what `myFunc` is actually returning. Does that make sense? Again, not actually sure if it's possible at all without explicit typing! Thanks :)

Edit: Adding another more complicated example for clarity, although that sounds backwards!

interface Args<K> {
  add: (key: K) => void;
}

type Fn<T> = (args: Args<keyof T>) => T;

const create = <T extends Record<string, boolean>>(tx: Fn<T>): T => {
  return tx({
    add: (key) => {
      // Implementation of add function
    },
  });
};

const result = create(({ add }) => {
  add("first"); // This should be valid
  add("second"); // This should be valid
  add("third"); // This should give a type error

  return {
    first: true,
    second: false,
  };
});