back to feed

the worst ++on-load

2023.12.11

%feeds has pioneered a new way to do state transition algorithms.

i'm calling it “wipe the entire state every time the type of the state changes”.

clever, huh?

++  on-load
  |=  old-state=vase
  ^-  (quip card _this)
  ?:  -:(mule |.(!<(state-n old-state)))
    =/  old  !<(state-n old-state)
    `this(state old)
  `this(state *state-n)

i won't be able to get away with this for long. people don't like when you wipe their data.

but i don't want to have a dirty sur file. nobody likes a dirty sur file.

and i kinda have no idea what this app will turn out becoming. so yeah, i'm gunna wreck your state until i figure out how to build this thing correctly.