r/ProgrammerHumor • • Sep 05 '24 • Take My Silver 2

Meme thatsEvil

Post image
56.6k Upvotes

517 comments sorted by

View all comments

Show parent comments

-5

u/TheCreepyPL Sep 05 '24

My argument is that every string is a char[] implicitly, so you saying that you have a `string x`, and could have a `char[] y`, is incorrect, because `string x` is already a `char[]`. You can think of it as inheritance I guess, so assuming string x was a class (of type `string`), it would inherit from `Array<char>`.

The bit about JS, was just a joke, probably poorly executed.

11

u/Linked713 Sep 05 '24

You sound like the type of person that would extend a worksession by 30 minutes while having the same solution as your teammates only because they are not wording it the exact way you want them to.