-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use null instead of Deno.EOF for read return types #3932
Comments
Past discussions: denoland/std#444 |
Also, I believe we could add |
I also want to point out that I think a custom null symbol is only needed for unions with generic types: |
Ok, I have a slightly stronger opinion on this now... I have no problem with cc/ @bartlomieju |
Wait, why is there a Line 38 in 87c329c
It might be useful to attach Deno specific functions to web APIs, we should use |
@kitsonk @nayeemrmn that's interesting topic, just yesterday I talked with @ry about it. I'm not sure that EDIT: It looks like it does work like that; the only difference is that once As for |
@ry Thoughts on this? Not much time left to make the change. |
@nayeemrmn I'm working on it. |
Discussed this issue yesterday - we have a sentiment to remove
|
As in the problem with all of JavaScript, right? The problem is that it makes it really hard to provide spec compliant features with the current behaviour. |
Throughout
cli/js
andstd
, there are return types that look likenumber | Deno.EOF
,Uint8Array | Deno.EOF
,ServerRequest | Deno.EOF
. These are a pain to use and force a proprietary type for no reason. Withnull
we can use JS's null checking syntaxes to extract the important type.The text was updated successfully, but these errors were encountered: