HN user

gmdrd

12 karma
Posts2
Comments8
View on HN
Logicola 3 2 years ago

I'm taking one of the tests and the feedback seems strange: although it appears I got it right, because the selected answer turns green, many of the other answers turn red (which usually indicates a failure) and other unselected answers also turn green. It's confusing.

Is there something wrong with creating opaque types using this method?

  type ObjectId = string & { 
  readonly __tag: unique 
  symbol }
This way, we don't need to use `never`, but we still prevent the creation of a structurally equivalent type by mistake.

I find it an interesting point of view on the current risks of AI, and on how the current development of LLMs interacts with our own biases and our economic system, generating potentially serious problems.