Comments (2)
Since a non-existent field always returns the same value (it always throws), its value is consistent
Ah, I see. The purpose of the function is to check for consistent behaviour (for the compiler, perhaps?).
From a user POV, It's not very clear from the documentation that the intended use of the function is to answer "does loading this field result in a consistent value", rather than "is this field declared as a const of this type"? The documentation seems to imply the latter. And if that's the latter, then a non-existent field is certainly not declared const because it's not declared at all.
from julia.
I think more concerning is that it also reports that abstract types have only constant-field subtypes:
julia> isconst(Any, 1)
true
Actually, this one is documented (in the code at least):
julia> isconst(BitSet, :ajkhfd) # non-existent field
Since a non-existent field always returns the same value (it always throws), its value is consistent
from julia.
Related Issues (20)
- Feature request: Finer-grained sleep function HOT 30
- FEATURE REQUEST: Julia REPL to show currently active environment in julia and shell mode HOT 1
- Distributed error with function kwargs HOT 1
- Produce coverage files that include info on non compiled functions
- `USE_BINARYBUILDER_LLVM=0` doesn't work on windows HOT 3
- Subtle change in Array behavior w.r.t finalizers after Memory HOT 3
- `Base.Iterators`: delete the `cycle(iter, n)` method, at least until the API for stateful iterators is worked out? HOT 2
- Loading Dates invalidates Base.typeinfo_implicit(::Any) HOT 1
- Anomalous “JuliaSyntax parser failed” error - julia 1.11.0-DEV.715
- REPL error in 1-11-rc1 HOT 1
- Increase stack size to 8 MB? HOT 3
- Proposal: A `propertytype(s)` function HOT 2
- document the optional argument of the `Task` constructor
- Regression in nightly: `llvmcall with integer pointers is deprecated, use an actual pointer type instead` HOT 4
- Identical mutable struct `MutRange(1, 3) == MutRange(1, 3)` returns false HOT 5
- Error in comparing `getnameinfo` result in `Sockets` CI test HOT 3
- Performance regression up to 20% when updating from Julia v1.10.4 to v1.11.0-rc1 HOT 10
- Testing Julia pipeline in isolation via `opt` leads to invalid IR HOT 2
- Delete or possibly refactor `reset_gc_stats`? HOT 1
- Difference in Float32 parsing on Windows and Linux HOT 3
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.