ocaml-mlx / mlx

OCaml .mlx syntax dialect which adds JSX syntax expressions
Other
104 stars 2 forks source link

Missing syntax: props punning, optional props #2

Closed jchavarri closed 1 year ago

jchavarri commented 1 year ago

For both props:

- <input onChange=onChange />
+ <input onChange />

and optional arg syntax ?value=value and ?value.

andreypopp commented 1 year ago

Hm... props punning actually works already but ocamlformat-mlx needs to reformat where appropriate.

jchavarri commented 1 year ago

Ahh yes, I think I have not started testing ocamlformat-mlx yet.

andreypopp commented 1 year ago

Added reformat for punning where possible in ocamlformat-mlx.0.2. Will keep this issue open for support for ?prop syntax.

andreypopp commented 1 year ago

Fixed in 3d0c49c97bacd03d5eca2497676fcac100936c2e, release as 0.4 (ocamlformat-mlx support as well).

jchavarri commented 1 year ago

thanks!