google / google/codeworld

Requirements: whitelist or blacklist standard library symbols

Open
#777 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

There should be a requirement rule that allows a teacher to define a whitelist or blacklist of allowed standard library symbols that can be used in a project. Examples (from @alphalambda):

* Build a rectangle using "polygon" instead of "rectangle" (using "rectangle" not allowed)
* Use the included definition of "ellipse" (which uses "circle") but do not use "circle" anywhere else in your code, and then draw a bunch of ellipses
* Build a tangram using just the provided polygonal pieces (polygon and rectangle are not allowed except in the definition of the provided tangram pieces)

Another one I've used:

* Draw a complete picture using nothing but `arc`s and transformations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.