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
The core library is what allows the compiler to handle operations like 1 + 2, true == false, etc. When the core library isn't listed as a dependency (or std isn't listed as a dependency, because it automatically brings in core), then the user gets a confusing error message about how core::ops::Add isn't imported, etc. I feel that because operations like 1 + 2 and true == false are so ubiquitous, that core should be automatically imported always. It also isn't a very good user experience to have to remember to import a library in order to use +, IMO.
The
core
library is what allows the compiler to handle operations like1 + 2
,true == false
, etc. When thecore
library isn't listed as a dependency (orstd
isn't listed as a dependency, because it automatically brings incore
), then the user gets a confusing error message about howcore::ops::Add
isn't imported, etc. I feel that because operations like1 + 2
andtrue == false
are so ubiquitous, thatcore
should be automatically imported always. It also isn't a very good user experience to have to remember to import a library in order to use+
, IMO.prelude
#841The text was updated successfully, but these errors were encountered: