Jen Basch

Results 35 issues of Jen Basch

[SPICE-0009](https://github.com/apple/pkl-evolution/pull/10) Includes the changes from https://github.com/apple/pkl/pull/640

Repro: ```pkl class A {} a: A // result: a {} local aLocal: A // error: Missing property value. ``` I would expect `aLocal` to be initialized to the default...

This PR adds methods to `Listing` and `Mapping` that can be used to retrieve members. If the member for the index/key isn't present, it applies `default` to the index/key. In...

It's weird that this does not produce an error: ```pkl abstract class Bird { name: String } class Parrot extends Bird { name = "Polly" lifespan = (super.lifespan) { //...

One common pattern in infrastructure-as-code systems like Terraform and Pulumi is "references". A reference provides a way to refer to a resource (or a property thereof) that exists at a...

Noticed this while testing out https://github.com/apple/pkl-pantry/pull/105 The `Recur` module includes some fairly complex type constraints with comments inline for clarity, eg. ```pkl until: ( * DateTime( // if dtstart is...

The primary motivation here is to allow Pkl to properly work with arbitrary binary data. String can be abused to some extent, but because text encoding (and unicode normalization) is...

Given input ```pkl class Thing { a: Int b: Int function toString(): String = "\(a):\(b)" } local thingListing = new Listing { new { a = 10; b = 20...