Skip to content
Snippets Groups Projects
Commit ab698d68 authored by xo30xoqa's avatar xo30xoqa
Browse files

Rewrote @species

The first version generally did what it was supposed to, but was overly
complicated and brittle, because it basically did its own parsing.
This version simply wraps the user code in a function and uses @locals
to access the ready-parsed variables. This is not only much cleaner,
but also gives the user more of what he expects (e.g. the ability to
reference previously defined variables).

I had actually tried this approach before, but only got it to work
once I understood how @locals works under the hood, plus a lot of other
Julia internals. So I now not only have more elegant code, I also
learnt quite a bit - a good win :-)
parent 28253044
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment