Re: New candidate JEP: 502: Stable Values (Preview)

2025-02-27 Thread David Gregory
amazing candidate for stable as it's only mutated immediately after creation, like in List#map: https://github.com/scala/scala/blob/a2090009c4fc3791b545a257ec6d1431e87cb1f4/src/library/scala/collection/immutable/List.scala#L245 Thanks, David Gregory

Re: New candidate JEP: 502: Stable Values (Preview)

2025-02-21 Thread David Gregory
e all kinds of not-quite-tail-recursive programs stack safe without using explicit stacks to store the intermediate values. Is it possible that the informal rules for record components will be adjusted to allow stable fields in addition to final ones? Thanks, David Gregory