Yes you can but the little red squiggles show in your editor to warn you that it’s unused code. That’s what the whole post is about lol
Yes you can but the little red squiggles show in your editor to warn you that it’s unused code. That’s what the whole post is about lol
Then it automatically imports the library for you too lol
How do you mean? You can’t type a word without using it in a word processor. Once the word is typed out it’s been used. Variables need to be declared then used so 2 separate steps.
Sometimes it takes way too long though. I had a display issue that made many of my tiny Linux boxes stop working and it took me almost a month to figure out the issue. I had to revert to an older kernal to fix them all. They just randomly stopped working one day lol. Makes me not want to accept updates so that’s not great
In the error shown a compiler would be just fine and run as usual but the person programming it would be expecting a different result so a compiler wouldn’t do this for you since it’s a logical error and not a syntax error.
I get your point about it being a trick question but I think in this case it’s pretty reasonable that you would see code like this in real life. Where the programming metaphor and your understanding of the real world clash. It’s a very important skill to be able to spot the difference.
Maybe if he gets permission from Nintendo he could keep going
This blows. Lawyers ruin everything
By typed they mean declairing a type for your variables.
In some languages, variables needs to be told what kind of data they can hold. That’s it’s type. For instance a number without decimals would be an integer type. While text might be a string type or a list of character types.
Other languages don’t require types and sometimes don’t even support them. They will just infer the type from the data that’s in the variable.
If you see Elon Musk please explain this to him.
It’s kind of like graphQl you could make a compiler that would work with this.
Good thing it’s so easy to install again
It’s definitely an improvement to just being plain old dead