Best Practices for Pure Functions in Effect Typescript

the below is a pure function, since no effectful operations (such as effectful function calls) occur, yes ?
what's best practice, use Effect.sync() or vanilla syntax only ?

createGenesis: (
    timestamp: DateTime.Utc,
    message: string = "Blockchain initialized"
  ) =>
    Effect.sync(() => {
      const genesisEvent = Event.Genesis.make(timestamp, { message });
      const partial = {
        timestamp,
        blockNumber: 0,
        events: Chunk.make(genesisEvent),
        previousHash: "0".repeat(64),
      };
      const hash = Block.computeHash(partial);
      return { ...partial, hash };
    }),
Was this page helpful?