Comments (3)
Behind the scenes we model namespaces as a file, using the base name to define the name, like:
// in namespace TLU
3D = LAMBDA(x, ... );
This assumes that the base is itself a valid name. In cases where the name is not individually valid, we report an error and do not save it to the manager.
We should not "split" names into namespace / base when each part is individually not a valid name. Instead, we should treat it as atomic and put it in the top level namespace. So it would look something like:
// in namespace 'Workbook'
TLU.3D = LAMBDA(x, ...);
from advanced-formula-environment.
That sounds like a good solution to me.
I wanted to note that I created a gist with the affected functions in text form, and when I imported them that way, they all went to the workbook namespace and worked as expected. If the "hidden worksheet" option is enabled, they continue working with AFE after saving and reopening the workbook, but if the "hidden worksheet" is disabled, they won't be recognized later.
Perhaps the capability to import from text into the workbook namespace, or to move items (and rename as appropriate) from a given namespace into the workbook namespace would be helpful.
from advanced-formula-environment.
The latest version of manages namespaces, now called modules, explicitly. This is in contrast to the previous behaviour of representing names both as namespaces and in the manager, determined by splitting on a dot. As a result, AFE will no longer try and split something like TLU.3D
.
from advanced-formula-environment.
Related Issues (20)
- Improve error reporting for save failures
- When importing from Gist, formulas are not synchronized to the "Formulas" section in "Names" tab. HOT 3
- Line breaks are not passed from grid formatting into the formula bar HOT 4
- External library ("Import from URL") [question] HOT 6
- Advanced Formula Environment - failed to load HOT 8
- Hide/Minimize the Add-ins HOT 5
- There is no option to change the scope of the range HOT 3
- Removal of hidden sheets HOT 1
- Enable change the order of the function argument in Name tab HOT 3
- Preserve the URL for import module from previous load and resolve duplicates HOT 1
- Non-english array notation HOT 6
- Allow user to specify the tab length
- No way to share functions written using Names>Functions tab HOT 7
- How timer LAMBDA function works from Lib.md? HOT 4
- Dot in function name in Workbook is allowed but not in any other module HOT 2
- Comments in the Grid tab HOT 4
- Format doesn't work with selected text for Modules HOT 1
- Failed to load HOT 1
- Editor doesn't recognize valid Script Lab custom functions HOT 1
- Synchronization of shared Modules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-formula-environment.