3 ms·
I've really taken to writing a lot of Hy [0] -- somewhat irresponsibly, since Hy is maintained by a ragtag band of brilliant mavericks; but `hy2py` works great
by prionassembly 6y ago
I've really taken to writing a lot of Hy [0] -- somewhat irresponsibly, since Hy is maintained by a ragtag band of brilliant mavericks; but `hy2py` works great if you `eval-when-compile` most of your macros. Anyway, Hy syntax is
```
(with [f open(file 'r)] (do stuff))
```
rather than
```
with open(file,'r') as f:
```
I switch [1] to Python (often to write tests in a language the node.js crew will be able to skim) and the one thing that trips me always is the wrong ordering of the `with` statement in straight Python. You don't say `for range(10) as x`...
I hope the Hy crew do the sensible thing about case statements. I don't even know what the sensible thing is, though.
[0] http://hylang.org http://hylang.org
[1] Yes, you can import Hy code from Python and vice-versa!
- przemub 6y agoOh, another Hy user in the wild! I started using it and took liking to it, but it seems kind of dead. Are you using it in any public projects?