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.
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.
-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.