source-academy / py-slang

Python sublanguage for SICP
Apache License 2.0
0 stars 0 forks source link

JavaScript keywords not allowed as Python identifiers #19

Closed martin-henz closed 2 months ago

martin-henz commented 3 months ago

Currently

function = 1

is not allowed, but it should be allowed.

Suggestion: We can use $ (not allowed within Python identifiers) to make sure Python identifiers are not confused with JavaScript keywords. The example above then becomes, for example:

$function$ = 1;

in JavaScript.

martin-henz commented 2 months ago

resolved