Comments (4)
This is something to get used to, but it's rather unavoidable, given Pkl's dynamic name resolution. In a general sense, this is indistinguishable from a stack overflow (even though this direct case seems obvious; it doesn't generalise and most "real" scenarios involve at least one indirection). I'd argue the stack overflow is already kind of nice, in that it shows what the loop was explicitly.
Closing this for lack of further specificity.
from pkl.
You might expect that, but does that mean you'd also expect that as soon as you're inside a function, you can't reference object properties at all anymore? How would you write this?
function Uniform(x_: Float): Point = new { x = x_; y = x; z = x }
from pkl.
Hmm, you are right. Then the issue becomes "it should give a nice error instead of stack overflowing" :)
from pkl.
Bumped into this
from pkl.
Related Issues (20)
- 🐛`fixed` properties not respected by `toTyped()` HOT 3
- Refer to functions through their identifiers HOT 2
- Output converters should allow selection for properties by Annotation HOT 1
- binary serialization HOT 8
- Glob reading with the `file:` schema fails on some paths HOT 5
- Possible race condition when eval'ing packages in concurrently HOT 1
- Renaming the project from pkl because of prior existing python pickle file format HOT 1
- Performance inspection tools
- Statically analyze imports of a Pkl program
- Flawed construction of Java objects involving polymorphic Listings HOT 4
- Exception in code generation on Java 22 - NoSuchMethodError: void sun.misc.Unsafe.ensureClassInitialized HOT 1
- Intellij plugin does not support latest Community release HOT 1
- Regression: PklBugException when amending result of a globbed import/read
- Gradle Plugin Fails on Windows HOT 6
- PklBugException when given a `file:` URI with a host HOT 1
- Ability to inherit multiple classes HOT 1
- Multiple file output does not work with symlinks
- Support Go semver convention HOT 2
- Regression between 0.26.1 and 0.26.3: properties provided on the commandline with `=` in them are parsed differently HOT 1
- Pkl package using private repo (using authentication) 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 pkl.