Carpet

Carpet

2M Downloads

import() symbols do not allow upper case letters

SirGavith opened this issue ยท 3 comments

commented

When using import import(foo,Bar); , no function is defined as Bar, but using import(foo,bar); it will work as expected.
It does not matter if the function in the library file is capitalized, nor if the use in the main file is capitalized, just the symbol in import()

commented

that it because it always defaults to lowercase. Same for script names.

commented

but you can technically use uppercases in the scripts - which is just stylistic for scarpet to use snake case.

Will try to support mixed case literals.

commented

Made function names case-sensitive throughout.
Still have an opinion that mixing snake and camel cases lead to mess and certain portions of the language already lean towards snake case (default '_' and other '_\w' variables, or 'global_*' vars), but if one wants to mix in upper case - let it be.

Module names are still lowercased internally.
2c7c7d9