Comments (5)
It's just that The only instance of the singleton type Core.Type{T} is the object T
only holds for T <: Type
. And ideally Core.Type
would enforce that as a parametric constraint, but it doesn't. So we could improve the docs.
from julia.
Julia 1.10 also allows Type{Base}
, previously an error. I suppose it follows the same rule but I don't know where that's documented.
from julia.
Modules were intentionally added as supported type parameters in #47749.
from julia.
The docstring for Type
says
Core.Type is an abstract type which has all type objects as its instances. The only instance of the singleton type Core.Type{T} is the object T.
But that doesn't hold for modules:
julia> module Bar end
Main.Bar
julia> Bar isa Type{Bar}
false
It would be helpful to clarify the docstring for Type
or make this behavior hold for modules
from julia.
Modules aren't types, so it's not going to be subtype of type.
from julia.
Related Issues (20)
- illegal instruction at <address> for a long running threaded program HOT 3
- Weird Windows 11 failure / crash HOT 2
- Error: "attempt to send to unknown socket" after rmprocs
- 2x Regression in string join benchmark on NanoSoldier HOT 5
- Project precompilation fails on 1.11.0-alpha2 if Project.toml contains "name" but no UUID
- Incorrect Pkg commands result in "Unhandled Task ERROR:" HOT 1
- expose GMP bit-flipping operations (tstbit, combit, etcetera) HOT 2
- Segfault when LD_LIBRARY_PATH is set at something HOT 6
- RNA Extraction and RNA Purification Market Size, Growth Strategies, Competitive Landscape, Factor Analysis, 2035
- malformed profiling results, zero line numbers
- `convert` doesn't preserve `Base.OneTo` if the element type is being changed HOT 2
- Evaluate the cost of relocatable files in parallel filesystems HOT 2
- Segfault in jl_emit_codeinst HOT 1
- Error when instantiating environment: "compiled/v1.12/RegressionTests/L2wCO_p4MmI.ji" No such file or directory HOT 1
- Wrong number of methods after redefinition of function HOT 6
- libunwind ld warning during build and incorrect line numbers in stacktrace HOT 1
- `@fastmath` and `literal_pow` not compatible HOT 1
- Source link 404 HOT 1
- 1.11.0-alpha2: problems with precompilation HOT 3
- Destructed arguments cannot be properly used to define optional arguments HOT 1
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 julia.