Project

General

Profile

Support #1650

Potentially confusing prompt: waiting for semicolon

Added by John Abbott over 2 years ago. Updated about 1 month ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
Parser/Interpreter
Target version:
Start date:
24 Jan 2022
Due date:
% Done:

10%

Estimated time:
Spent time:

Description

The following could be confusing:

/**/ A := L[1
[[waiting for semicolon]] /**/ 

Can we find a better name for the prompt?

History

#1 Updated by John Abbott about 2 years ago

How about [[command incomplete]]?
Though that does read rather like an error message...

#2 Updated by John Abbott about 1 month ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

Since some languages (such as Julia) do not require semicolons to end the command while CoCoA does, perhaps the a common cause of an incomplete command is indeed a missing semicolon... and in this case the prompt is reasonably helpful.
The example I gave is "awkward": but if the user were then to type a semicolon then a more precise/helpful error will be produced.

I'm now tempted to say that we stick with the current prompt until someone comes up with a better suggestion (and/or there is a genuine case where the prompt is badly misleading).

Should we reject this issue?

Also available in: Atom PDF