News for hackers. Stuff that matters.
Re:RONIN by dash2 on Monday December 25, 2023 @01:47PM (#38764984)

    get.account.with.id = 'acc_fa0k5kkw35fik9pu';

    get.account.with = {
      lastName: 'Elaine',
      email: '[email protected]'
    };
I can't decide whether this is genius simplicity, or a terrible leaky-abstraction hack. Interesting.
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')
    ]);
Re:RONIN by pphysch on Monday December 25, 2023 @02:05PM (#38765142)
I'm no fan of LISPs but this is taking paren-phobia to a new level.