You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf should report the value when it could not be applied to a directive; currently, it reports the type of the value.
> printf("%d",Inf)
Directive d not applicable for type Num
This is misleading when the type is expected to work, but can have unworkable values; in the above example, it is surprising to hear that Num does not apply to d, whereas in fact it is Inf or NaN that don't apply to d.
Another misleading case is Str, since again it is the value that is unusable, not the type:
> printf("%d", "1")
1
> printf("%d", "raku")
Directive d not applicable for type Str
The text was updated successfully, but these errors were encountered:
printf
should report the value when it could not be applied to a directive; currently, it reports the type of the value.This is misleading when the type is expected to work, but can have unworkable values; in the above example, it is surprising to hear that
Num
does not apply tod
, whereas in fact it isInf
orNaN
that don't apply tod
.Another misleading case is
Str
, since again it is the value that is unusable, not the type:The text was updated successfully, but these errors were encountered: