Daniel Chao
Daniel Chao
Yeah; I think that's right
I'm okay with that! @stackoverflow, @holzensp: thoughts?
We definitely want to improve this, but it's not as simple as "lookup on a `Typed` should fail". A module is also a `Typed`, and this syntax should still work:...
I have the same advice that I did in the discussion that @StefMa linked to. The best way to stub out that value is to expose it as an API,...
@HT154 can we add some test coverage for this? I think this would involve moving `TestExternalReaderProcess` to pkl-commons-test, and adding a corresponding test to `org.pkl.gradle.EvaluatorsTest`. Hint: the Groovy syntax for...
> While we are here, what is the reason that pkl has Mappings and Map and Listing and List? Several reasons (not comprehensive): * Mapping and Listing are values of...
`is` accepts a type, rather than an expression, and types and values exist in different namespaces. This is intentional, and changing this would be a breaking change for how `is`...
You can compare the class values directly, e.g. ```pkl import "pkl:reflect" class Foo {} local classes = new Listing { Foo }.toList() function isClassOrSubclass(value: Any, clazz: Class?) = if (clazz...
I'm open to it! Feel free to submit a PR for it. Maybe `hasInstance` is a better name.
Thanks for the feedback! We'll look to improve the tutorial. But, also, feel free to submit a pull request with changes that you think would be more helpful.