Skip to content

Update code samples and prose for ponyc 0.70.0 constraint cap change - #590

Open
SeanTAllen wants to merge 1 commit into
mainfrom
sean/fix-for-ponyc-0.70.0
Open

Update code samples and prose for ponyc 0.70.0 constraint cap change#590
SeanTAllen wants to merge 1 commit into
mainfrom
sean/fix-for-ponyc-0.70.0

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

ponyc 0.70.0 uses the default capability of named types in type parameter constraints instead of substituting #any. Code samples and prose that relied on the implicit #any need updating.

Changes:

  • control-structures-iftype-capability.pony: A: AnimalA: Animal #any (the example passes both Cat ref and Cat val, so needs any-cap)
  • appendices-examples-test-helper.pony: StringableStringable #read (matches Equatable[A] #read on the other side)
  • generics-and-reference-capabilities-explicit-constraint-and-default-capability.pony: A: AnyA: Any #any
  • Tutorial prose updated to say "use #any" instead of "leave out the capability"

ponyc 0.70.0 uses the default capability of the named type in
constraints instead of substituting #any. Code samples that relied
on the implicit #any need explicit capability annotations.
@netlify

netlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for pony-tutorial ready!

Name Link
🔨 Latest commit d38f044
🔍 Latest deploy log https://app.netlify.com/projects/pony-tutorial/deploys/6a90afa0f70cd70008278e22
😎 Deploy Preview https://deploy-preview-590--pony-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 27, 2026
@SeanTAllen SeanTAllen mentioned this pull request Aug 29, 2026
4 tasks
@SeanTAllen SeanTAllen added do not merge This PR should not be merged at this time and removed discuss during sync Should be discussed during an upcoming sync labels Aug 30, 2026
@SeanTAllen
SeanTAllen marked this pull request as ready for review August 30, 2026 02:58
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discuss during sync Should be discussed during an upcoming sync do not merge This PR should not be merged at this time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants