this post was submitted on 22 Oct 2023
1 points (66.7% liked)

Hacker News

1770 readers
1 users here now

This community serves to share top posts on Hacker News with the wider fediverse.

Rules0. Keep it legal

  1. Keep it civil and SFW
  2. Keep it safe for members of marginalised groups

founded 2 years ago
MODERATORS
 

There is a discussion on Hacker News, but feel free to comment here as well.

you are viewing a single comment's thread
view the rest of the comments
[–] wetferret 1 points 1 year ago* (last edited 1 year ago)

Very cool idea! Reading through the comments on Hacker News it sounds like support for private fields has been implemented by browsers and class may have performance benefits over the functional approach.

In any case, I am really impressed by creative solutions like this.