News for hackers. Stuff that matters.
Re:RONIN by phpnode on Monday December 25, 2023 @02:48PM (#38765513)
There's this and a few other magical things in the client that give me pause, in particular:

    const [post, comments] = await query(({ get }) => {
      get.post.with.slug = 'new-pricing';
      get.comments;
    });

there is simply no way to make that type safe without wrapping or forking TypeScript, and consumers really don't want that. Why make that tradeoff? Especially when it's so easy to accomplish with a more normal syntax:

    const [post, comments] = await query(({ get }) => [
      get('post').with({slug: 'new-pricing'}),
      get('comments')
    ]);

There are no comments on this comment yet.