Crell / enum-comparison

A comparison of enumerations and similar features in different languages
82 stars 7 forks source link

I created an online WebAssembly demo for enums #70

Closed TysonAndre closed 3 years ago

TysonAndre commented 3 years ago

This may help in answering questions reviewers may have about the implementation, or in clarifying answers/misconceptions - https://tysonandre.github.io/php-rfc-demo/enums/

(the enums rfc has a lot of functionality, and actually being able to run it (without the obstacle of needing to fetch it and compile it from source) may help reviewers understand it or discover edge cases.)

Screenshot_2021-01-23_09-46-30


This was an idea I had for a while for my own RFCs; You're the ones working on that RFC and no RFCs I remember even include a demo, so feel free to just not use it or fork it with better examples.

Feel free to close this; this seemed like a better place to post it than current discussion on the php-src PR or mailing list

iluuu1994 commented 3 years ago

This is really cool, thanks @TysonAndre! I asked Sjön to add to add a branch to https://3v4l.org. He briefly added it but for some reason it vanished. This seems to serve the same purpose. @Crell IMO it would be pretty nice to share this on the ML so people can play around and see if they discover anything that might be surprising to them.

iluuu1994 commented 3 years ago

We shared it in the ML. Thanks again!