cherry 2023-07-25

Does cherry supports ES6 Class syntax? I want to experiment a setup with Web Components without React or other frameworks and it seems like class syntax is a hard requirement for web components.

I’m working on this today

1
πŸ˜† 3

Fantastic!

Nevermind, found the issue, wrong keywords: https://github.com/squint-cljs/cherry/issues/97

Thank you, @borkdude! I was hoping to get to that before you did, but I failed. πŸ™‡πŸ»

It's not that easy though... but still working on it

πŸ‘πŸ» 1
1

If it would be fun to share, I’m curious which implementation strategy you’re going with.

I was thinking about it a couple days ago and it seemed like there were a few that might work.

I'm just copying shadow's syntax, but I'm currently dealing with a bit of mess that relates to extend-type (methods on Object)

I'm on branch defclass-2 if you want to try it

πŸ‘πŸ» 1

this is in squint

βœ… 1

I'm going to port it to cherry as well when it's done

Awesome. I’m very excited about this feature. I think squint could be a fantastic way to write web components without having to deal with the chaos of the JavaScript world.

I hope so :)

plz test drive (might be a bit soon, but it would help my motivation as well I think)

Ah, sure. It’s ready for a test drive now?

Let's continue in #squint

πŸ‘πŸ» 1