Comment

Comment by joaohaas

I don't think naming convention is the kind of stuff that helps save tokens, specially considering how text is tokenized.

On the other hand, being able to write 'list.filter(v => v.selected)' (or something similar) instead of:

  listFiltered := []Item{}
  for _, item := range list {
    if item.selected {
      listFiltered = append(listFiltered, item)
    }
  }
would save much more tokens.
parent joaohaas 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton