Skip to main content
N3dst4's user avatar
N3dst4's user avatar
N3dst4's user avatar
N3dst4
  • Member for 14 years, 8 months
  • Last seen this week
awarded
awarded
awarded
comment
Why is putting an inline variable assignment before a subshell a syntax error?
> "that variable is passed to that process only not to the current shell" Exactly, so my question was - why can't you do that to pass a variable into a subshell, which is a separate process? I think @chepner was right - it's a syntactic limitation because bash's compound statement need to start with keyword.
revised
Loading…
Loading…
comment
Isomorphic object map in TypeScript
@JaredSmith Oh that's a good link, thanks. But yeah, you're right. I'll settle for a good old as :)
comment
Isomorphic object map in TypeScript
@JaredSmith I'm certainly not looking to fudge safety - I was hoping TS would be able to express a safe way of doing this. So, the way I've ended up thinking about this is that if you take kelly's example, to make it generic, you would need the function type to be a type parameter, but it requires type parameters itself. This is what other languages call a high-kinded type, and TS does not havs those.
comment
Isomorphic object map in TypeScript
@kellys That's the one! Thank you. Edit - right, it's dependent on the actual operation. Well, that's good progress.
comment
Isomorphic object map in TypeScript
@JaredSmith Yeah, I just keep thinking if the correctly-shaped type of the input is known there must be a way to get the corresponding output.
asked
Loading…
awarded
awarded
awarded
awarded
comment
Is there a way to increase specificity by adding the element with Emotion?
This is absolutely filthy. I love it. Thank you.
awarded
awarded
comment
How can I run a Kubernetes cluster with a single machine as a master and node?
For anyone who needs it, the command to remove that taint is kubectl taint nodes --all node-role.kubernetes.io/master-
awarded
1
2 3 4 5
28