Skip to content

Don't use symbol to denote absence of count method#1464

Merged
etiennebarrie merged 1 commit intomainfrom
dont-use-symbol-to-denote-absence-of-count-method
May 4, 2026
Merged

Don't use symbol to denote absence of count method#1464
etiennebarrie merged 1 commit intomainfrom
dont-use-symbol-to-denote-absence-of-count-method

Conversation

@etiennebarrie
Copy link
Copy Markdown
Member

LLMs apparently assume :no_count means the Task shouldn't try to calculate the total number of ticks, but it's actually the opposite, :no_count means no explicit count method has been defined, and the total number of ticks should be computed (possibly with an expensive query or processing).

This was always meant as an internal sentinel value, and it shouldn't be used by application code.

This switches to an sentinel value stored in a private constant, which thanks to nested modules is easily accessible, but not so from application code.

LLMs apparently assume `:no_count` means the Task shouldn't try to
calculate the total number of ticks, but it's actually the opposite,
:no_count means no explicit count method has been defined, and the total
number of ticks should be computed (possibly with an expensive query or
processing).

This was always meant as an internal sentinel value, and it shouldn't be
used by application code.

This switches to an sentinel value stored in a private constant, which
thanks to nested modules is easily accessible, but not so from
application code.
@etiennebarrie etiennebarrie merged commit fbf4d85 into main May 4, 2026
43 checks passed
@etiennebarrie etiennebarrie deleted the dont-use-symbol-to-denote-absence-of-count-method branch May 4, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants