ocaml-mlx / mlx

OCaml syntax dialect which adds JSX syntax expressions
Other
76 stars 1 forks source link

Missing syntax: props punning, optional props #2

Closed jchavarri closed 10 months ago

jchavarri commented 10 months ago

For both props:

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

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

andreypopp commented 10 months ago

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

jchavarri commented 10 months ago

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

andreypopp commented 10 months ago

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

andreypopp commented 10 months ago

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

jchavarri commented 10 months ago

thanks!