Fork me on GitHub
#conjure
<
2020-05-22
>
Olical09:05:21

Think I'll revert my 2,ee experiment for now :thinking_face: I think the multiple pair type searching works well though, so you can eval [...] forms now! To get the "walk this many levels out" or "this many levels in from the root" requires a rewrite of the form extraction code. It's suuuuuper tricky.

Olical09:05:10

Another reason to scrap what I was experimenting with, it would let you use 3,ee to eval 3 levels out of ONE kind of pair, so if you had [] mixed with () and {} you'd get super inconsistent results.

Olical09:05:14

Requires a rethink

Olical09:05:08

Would be great if there was a searchpairpos that returned every match's position

Olical10:05:10

If anyone has a chance to try out evaluating [] and {} forms on develop I'd love to have your feedback! It's working well for me but I'm sure I'm being too careful. If you have some weird combo of different pairs in a huge function, let me know if it still evaluates what you think it should.

Olical10:05:04

If you want the old behaviour back, :ConjureConfig extract.form-pairs [["(" ")"]] would basically revert this change.