Crell / enum-comparison

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

Serialization #31

Closed iluuu1994 closed 3 years ago

iluuu1994 commented 3 years ago

The following object functionality is available, and behaves just as it does on any other object:

  • ...
  • get, call, serialize, deserialize, and __invoke magic methods

Does it actually make sense to __serialize and __deserialize? I see no point in this, you're not allowed to store properties on the enum anyway.

iluuu1994 commented 3 years ago

We disallowed those methods.