Comments (5)
This change makes imports shorter and less repetitive, but on the other hand it breaks the pattern of every module being named after the symbol it exports, and having two similarly named modules (equal
and equals
) might cause confusion.
from deno_std.
How about renaming equal
to isEqual
to avoid the above (possible) confusion?
from deno_std.
A question has been raised in #5176
Should we also do the rename of @std/assert/assertion-error
-> @std/assert/error
?
from deno_std.
Should we also do the rename of @std/assert/assertion-error -> @std/assert/error?
I personally don't think we should do this rename.
assert/equals
and assertEquals
have completely the same sound when they are read. So it feels natural to be able to import assertEquals
from assert/equals
. On the other hand, assert/error
and AssertionError
are different in sound. So it feels a bit confusing that one can import AssertionError
from assert/error
.
WDYT?
from deno_std.
It makes sense that @std/assert/error
exports an error class, and it doesn't stick out as much as having a @std/assert/assertion-error
, compared to the rest of the package. That's as deep as my reasoning goes, but my opinion isn't too strong.
from deno_std.
Related Issues (20)
- to-do: enable `no-console` lint rule
- Reconsider value parsing of `std/ini`
- proposal: postpone `std/ini` stabilization HOT 1
- csv: `fieldsPerRecord: -1` doesn't seem working HOT 3
- to-do(dotenv): document key restrictions HOT 12
- (log): rename `BaseHandler` to `Handler`
- Add slugify function to std HOT 8
- to-do: stabilize `@std/webgpu`
- file snapshot for deno test
- feat_req(html): check whether a html attribute is boolean according to the spec
- Ensure file name and export of single functions are the same HOT 6
- bug(cache): flaky `memoize() works with async functions` test
- Suggestion: `TtlCache` addition to `@std/cache` HOT 1
- Front matter test detect false if there's a space after the first delimiter
- feature: add structured data in @std/data-structures HOT 3
- Add support streaming json parsing from array of objects
- front-matter: allow YAML parsing to be reconfigured (or re-expose generic extraction) HOT 10
- Suggestion: Add enum for `DOMException` names, similar to `HTTP_STATUS` and `METHOD` enums HOT 3
- YAML: Allow to store dates without time
- to-do: make `@std/http/file-server` compatible with `deno serve --parallel` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno_std.