google / google/codeworld

Constructor default name is confusing for blocks

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement funblocks
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

When creating a constructor, the default name is `Constructor`. After adding this once, you end up with what initially looks like TWO blocks called `Constructor` in the toolbox: one to define a new constructor, and one for the constructor you've just defined.

One solution might be to leave the name as "Constructor" in the toolbox, but automatically rename even the first one to add a number (Constructor1) when it's placed in the workspace.

This is minor.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Locate the constructor creation and toolbox/workspace handling entry points, then reproduce the duplicate-name behavior; done means the initial user-defined constructor is distinguishable from the constructor-definition block without disrupting later naming.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.