0

I was reading the exploring ES6 book, where at some point the author talks about the history of Javascript:

ECMAScript 4 was designed by Adobe, Mozilla, Opera, and Google and was a massive upgrade. Its planned feature sets included:

[...]

Evolutionary programming and scripting ([...],duck typing,[...])

But JavaScript does not enforce strong typing. So how can duck typing be implemented? Isn't duck typing already in the language?

Doesn't duck typing just mean not enforcing strong typing?

bsky
  • 19,326
  • 49
  • 155
  • 270
  • 1
    Related, maybe duplicate: https://stackoverflow.com/questions/4205130/what-is-duck-typing – jdphenix Jan 13 '18 at 21:34
  • "Duck typing" is not something you "implement", to me. It's a thing that varies based on a very specific API. – Pointy Jan 13 '18 at 21:36

0 Answers0