GithubHelp home page GithubHelp logo

Inconsistent use of strings about hedy HOT 4 CLOSED

felienne avatar felienne commented on April 27, 2024
Inconsistent use of strings

from hedy.

Comments (4)

Felienne avatar Felienne commented on April 27, 2024 1

Upon further consideration and examining of user data, this was a mistake, ask needs to take a string too. Will be fixed in a new version of the grammars.

from hedy.

Felienne avatar Felienne commented on April 27, 2024

Here was my thinking, but I am also of course willing to learn from your experience!

  • print is a real Python command that we want to build up in steps to the real thing
  • ask is a toy command, that will be replaced with a true function call---input()---once kids now how to write those things

Hence I did not want to make the syntax of ask too rich.

But I see it leads to issues such as not being able to use variables in ask.

Still thinking about it, feedback welcome!

from hedy.

arjenpdevries avatar arjenpdevries commented on April 27, 2024

Can you work around the problem by telling students everything after ask is given to an equivalent print command? Then you can implement it using print on everything s/(^.*ask)// and process the result as you had planned.

In my observation, the kids were happy to learn the difference between using quotes and not, but then confused that it did not work the same way in ask as in print.

from hedy.

arjenpdevries avatar arjenpdevries commented on April 27, 2024

Data-driven language design, pretty cool!

from hedy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.