Daniel Chao

Results 256 comments of Daniel Chao

I'm actually not sure why it behaves this way. I can't think of a good reason for the language to do this; might okay to make this behave like a...

I think amending is orthogonal here; normal properties will default to the type's default value. ```pkl a: A ``` Is effectively the same as: ```pkl a: A = new A...

Our Kubernetes package has fixed properties without explicitly assigned values: https://github.com/apple/pkl-k8s/blob/65907044bcf76ff0347abbb84e307fd291e0ad70/generated-package/api/core/v1/Pod.pkl#L29-L31 I'm not sure what errors we might be preventing here; you still get an error if the property's type...

> I can’t tell if you were implying otherwise, but I believe that IntelliJ should only give an error if parsing/evaluation is guaranteed to produce an error. Otherwise, IntelliJ should...

I think the method makes sense, but I'm not super convinced about the name. `getOrDefault` has a different semantic in other languages (like Java). I'd expect the signature to look...

This seems like a bug to me. This would also be a breaking change if fixed.

Looks like it's missing the commit sha. How are you building this? Did you clone the repo and build, or do something else?

> Rereading the introduction's [concepts](https://pkl-lang.org/main/current/introduction/concepts.html), the paragraph on [evaluation](https://pkl-lang.org/main/current/introduction/concepts.html#evaluation) seems to misrepresent Pkl in this regard: > > Evaluating a module produces an in-memory _data model_ that is roughly comparable...

You have a circular object that you are attempting to render. We should improve the error message here, although it's correct that it's throwing here. Here's one circular path: ```...

What's the use-case for this? Is it for defining a constraint? Today, you can do this in-language: ```pkl function isBase64(str: String) = str.match(Regex("[-A-Za-z0-9+/]*={0,3}")) ``` Or, a more precise version, and...