Soon: requiring parentheses for function applications in educational variant

17 views
Skip to first unread message

Chris Smith

unread,
Sep 1, 2017, 2:51:28 PM9/1/17
to codeworl...@googlegroups.com
FYI, for those of you using the educational variant of CodeWorld (code.world, but NOT code.world/haskell), I will be pushing a change soon that requires parentheses for function application.  That means, for example, that "dark green" will need to be rewritten as "dark(green)".

The plan:

1. ASAP: Push a change that adds compiler warnings for missing parentheses, and turns them to errors if and ONLY if the original module fails to compile anyway.
2. O(weeks): Push the change that requires parentheses.

The reason for this change is that accidental function application is still the largest cause of very puzzling compiler errors in CodeWorld.  This happens when a student accidentally leaves out a comma or an operator, and gets an error message complaining about something not being a function.  Pranjal Tale worked over the summer on a project to improve the error message translation in CodeWorld, and we identified this as a significant problem.

Sorry for the breaking changes, but fixes should be easy!

Chris Smith

unread,
Sep 1, 2017, 3:08:48 PM9/1/17
to codeworl...@googlegroups.com
If anyone particularly wants a longer time in the warning stage (for instance, so you can finish a class that's in progress), let me know.  I am just trying to avoid the confusing intermediate state if it's not necessary.

Peter van den Brand

unread,
Sep 1, 2017, 4:12:19 PM9/1/17
to codeworl...@googlegroups.com

I think it's a good idea to change this. There's one kid in my class who left out a comma several times, and the error messages are pretty intimidating and not helpful at all.

--
You received this message because you are subscribed to the Google Groups "codeworld-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codeworld-disc...@googlegroups.com.
To post to this group, send email to codeworl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codeworld-discuss/CAPq5PvK%3DXhsXq314WEOXa1bg-pauPZTR1LH8FNDK-D4EUF6zxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dave Sands

unread,
Sep 2, 2017, 3:01:48 AM9/2/17
to codeworld-discuss
Hi Chris,
Can you please hold off on this change for a couple of weeks? We are using it for an assignment were they are mixing code world style and Haskell style. Sort of a gentle intro to Haskell. This change would screw us up a bit. We might be done earlier, and I could let you know in that case. Cheers Dave
Reply all
Reply to author
Forward
0 new messages