Better HN
topnewbestaskshowjobs
Log inSign up

jax_the_dog

19 karma · joined Apr 1, 2019 (7y ago) · 6 submissions

Submissions

comment 3y ago · link · parent

Having just dealt with this… can you share that automation?

comment 3y ago · link · parent

That makes some sense to me.

I’m not a TypeScript dev so I apologize for the stupid question. Is there any functional difference between the two? I.e. is there a case where using Unknown instead of Any will result in some sort of “compile” time error opposed to a runtime?

comment 3y ago · link · parent

How is unknown better than any in this case? If you do not care about the data type, wouldn’t you say that “any” data type is acceptable? If you say “unknown” that means that there is possibly some data type that would break your function.

comment 6y ago · link · parent

Not OP, but it would add complexity because that method you "weren't going to need" turns out to actually be needed.

Now you have to work around your simplified design because you decided that you didn't need anything more.

comment 7y ago · link · parent

neofetch or screenfetch

6.

Ask HN: What is your faviorte interview question?

32 points · by jax_the_dog · 7y ago · 41 comments