data-centric-computing / dcic-public

Repository for (for now) filing bug reports about DCIC.
21 stars 2 forks source link

[DCIC Book]: bug in presentation of attempted variable re-definition #81

Open shriram opened 3 weeks ago

shriram commented 3 weeks ago

Contact Details

shriram@gmail.com

Which Web page has the problem?

https://dcic-world.org/2024-09-03/Naming_Values.html#%28part._program-directory%29

What's the problem?

  1. The text below the width = 50 exercise says that you will get a shadowing warning. But of course that's wrong: you just get a redefinition error. Even the text is unclear on whether you will get a warning or an error.
  2. This should be a "do now", because the answer is immediately below.
  3. Quotes should be used correctly: `` and '', not " and ".

What browser are you seeing the problem on?

No response

shriram commented 3 weeks ago

Credit to @egg on Pyret discord: https://discord.com/channels/926326973209391144/927580280137580594/1280515178101866506