Hacker GitHub

← All repos

openjdk/amber-docs

View on GitHub ↗ ★ 146 HTML

https://openjdk.org/projects/amber

26 mentions on Hacker News by 16 people: 8 stories, 18 comments · first 2020-08-18 · latest 2024-01-13

Mentions per year 26 mentions · busiest year 2021 (15)
20082026
  1. …for a little over two years ( https://mail.openjdk.org/pipermail/amber-dev/2021-September/... , https://github.com/openjdk/amber-docs/blob/master/site/desig... ). > The syntax of C# or Python is also lightweight, fine by me. Python has…
    comment by pron · 2024-01-13 · in JEP draft: String Templates (Final)
  2. This design note could be of interest: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
  3. Have you seen the whole plan? https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
    comment by kaba0 · 2023-08-10 · in Java 21: What’s New?
  4. https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... This is the vague plan.
    comment by kaba0 · 2023-03-18 · in JDK 20 G1/Parallel/Serial GC Changes
  5. …was ADTs, so we did buy into that. But the approach being explored for transforming records ( https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... ) only works one level at a time rather than for an entire path. So I wonder how…
    comment by pron · 2023-01-16 · in Making Lenses Practical in Java
  6. In the works: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
    comment by pron · 2023-01-16 · in Making Lenses Practical in Java
  7. …by copying objects. Never the less this eerily looks similar to Goetz proposal for reconstructors: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
    comment by vips7L · 2023-01-16 · in Making Lenses Practical in Java
  8. Just a heads up, something like that spread operator is actually coming sooner or later to java: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... Pattern matching (for records) is already a preview feature.
  9. While to my knowledge there is not yet a final decision, ‘withers’ are planned to solve that. https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... Basically, p = p with { .x = 3 } or something like that. But that will also…
    comment by kaba0 · 2021-12-24 · in State of Valhalla
  10. …avoiding unnecessary mutation for such classes (instead, we'll have "withers" or "reconstructors": https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... ). So we're killing two birds with one stone: making it easier to work with…
  11. …For example, here’s one on the future of a seemingly trivial feature, string interpolation: https://github.com/openjdk/amber-docs/blob/master/site/desig...
  12. …record Point(int x, int y) {} Point p = new Point(1, 2); Point pp = p with { x = 3; } [1] https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
    comment by BoyRobot777 · 2021-09-14 · in Java 17 / JDK 17: General Availability
  13. …and destructuring [1]. This is just exploratory but may be what you're thinking about? [1] https://github.com/openjdk/amber-docs/blob/master/site/desig...
    comment by carimura · 2021-09-14 · in Java 17 / JDK 17: General Availability
  14. …and record deconstruction. Goetz has put together a draft that shows how these could be combined. https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
  15. …an upcoming version of Java will get first class ergonomic support for manipulating immutable data: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... There is also https://github.com/hrldcpr/pcollections
  16. …future, they rather not maintain properties forever. I think the current future view is Withers ( https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... ).
  17. …You will be able to write: record Point(int x, int y){} Point pp = p with { x = 3; } [1] https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
    comment by BoyRobot777 · 2021-03-16 · in Java 16
  18. …Where did you get that info about patter matching?. By the way, java is really catching up on that. https://github.com/openjdk/amber-docs/tree/master/eg-drafts