Comments (3)
Thanks for the question! I am sorry, I am really bad at explaining, so the questions are super useful to clarify things. Thanks for digging through the material and trying to make sense of it.
My hope is that there is basically no distinction between the Function type and other types, in fact, that there is no such thing as a primitive type.
To give an example: the implementation of the lambda calculus in eneyj doesn't actually use object of type function. If you look at Z41 i_combinator, it is not of type Z8 function, but of type Z40 lambda. And yet you can call i_combinator(i_combinator) and it will evaluate (to i_combinator, because the i_combinator is just identity as per https://en.wikipedia.org/wiki/SKI_combinator_calculus , defined as λx.x)
And Z40 lambda is, if I remember it correctly, implemented entirely within user-space of abstracttext, and has nothing hardcoded in eneyj itself - so there is no real difference between functions and other types. They can be user defined, and thus it is simpler to have them all in the same namespace.
One other option would have been to have every type in its own namespace, but since some day we might have coercion, subtypes, or on-the-fly created types, this will likely be unfeasible at some point. So I have them now all in a single namespace.
This is not set in stone.
Thank you for the question! Feel free to continue the conversation here, or to close it if this answers the question. (And start new issues whenever you like)
from abstracttext.
Thank you!
It answers the question.
Maybe, then, it would be interesting to rephrase this bit of the docs:
"Types of Z-Objects
The type field of Z385 in the first screenshot above linked to "positive integer". Positive integer is not a primitive type in AbstractText, but is defined in AbstractText itself, in fact as the Z-Object with the ZID Z70."
When it says that "Positive integer is not a primitive type" it seems like there is such a thing as primitive types (at least for me that was the case).
Maybe just adding "there is no such thing as a primitive type." and a link to this response, if someone wants to know more about it, would already be of help.
from abstracttext.
Good point! I explicated that there are no such things as primitive types. Thank you!
from abstracttext.
Related Issues (15)
- How to handle transliteration in some languages? HOT 8
- Cannot evaluate unlinearized (JSON) version of value(project_name) call HOT 4
- Representing types HOT 6
- new Dataset type (to apply functions over sets of tables) HOT 1
- editing? HOT 15
- Document requirements for minimum implementation/kernel HOT 4
- value(true) and value(false) produce errors HOT 2
- ReferenceError in measure.js HOT 3
- Question about using named arguments with named references HOT 3
- JSON data table stays empty (Invalid argument supplied for foreach() in JsonContent.php) HOT 3
- Document meaning of alpha/beta functions HOT 15
- Infinite recursion in normal representation of type (Z1K1)? HOT 5
- Tests - status? HOT 2
- Special pages? HOT 28
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 abstracttext.