hyperfiddle

braai engineer 2025-02-26T12:14:05.446339Z

Does rcf support a unification syntax for maps where I only want to test certain keys, but allow other keys? E.g. something like {:a 5, b 6} := {:a 5, * *} or some other convenience syntax. I guess I can do select-keys before := 🙂

Dustin Getz (Hyperfiddle) 2025-02-26T12:28:10.495389Z

not OOTB 😞 we want this also

Dustin Getz (Hyperfiddle) 2025-02-26T12:28:28.480769Z

however, i just recalled that nubank matcher combinators might be able to do it - see https://github.com/hyperfiddle/rcf/commit/413bc58bb80d227ec82a2c7efed30dea1e5f869a#diff-c13009f4b85a4093921eca7d0837ead53a37f3fd569286f8a752eaedffba1ff1

Dustin Getz (Hyperfiddle) 2025-02-26T12:28:57.097219Z

https://github.com/nubank/matcher-combinators

braai engineer 2025-02-26T12:58:30.937699Z

perhaps a ~= operator instead of :=, but hard to spot it in code.

Dustin Getz (Hyperfiddle) 2025-02-26T13:11:12.872889Z

send PR

Dustin Getz (Hyperfiddle) 2025-02-26T13:12:02.885789Z

another syntax could be := {:a 1 :c 3 & _}

👍 2
JAtkins 2025-02-26T22:07:04.208789Z

Form4 stuff looks pretty cool from its' usage in entity-browser-0. Are there other public examples I can lean on to try and understand it?

Dustin Getz (Hyperfiddle) 2025-02-27T13:33:27.063569Z

is it urgent? I'd wait a couple weeks, we're on forms5 internally, and entity-browser3, which is just about ready to release

JAtkins 2025-02-27T14:44:35.626299Z

Nope, sounds good.