216
LISP is ugly
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
It feels like maybe this could be a code structure issue, but within your example what about something like this?
Does that kinda syntax work for your workflow? Maybe it'll require you to either pollute a single map (or similar) with a bunch of checks that you can use to trigger a break though.
Most of the time I've been able to find ways to re-write them in this syntax, but I also think that rusts borrowing system although fantastic for confidence in your code makes refactoring an absolute nightmare so often it's too much of a hassle to rewrite my code with a better syntax.
Thanks for this! I'll see if I can work something like this in.