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 optional user name to use for authentication purposes; by default, this is the null value.
arguments for "":
nil is not a valid value for string in js.
This would treat cstring more like a value type instead of a reference type; but note that in js, string is an immutable, so ref vs value doesn't really matter
if we were to change default value to "", this could be done using something similar to nim-lang#16606 (adapting it for string instead of BigInt)
The text was updated successfully, but these errors were encountered:
timotheecour
changed the title
js: document what cstring.default should be (nil vs "")
js: document what cstring.default should be (nil vs "")
Jan 10, 2021
arguments for nil:
refs: Add jsxmlhttprequest nim-lang/fusion#57 (comment)
which matches https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open
arguments for
""
:nil
is not a valid value for string in js.This would treat cstring more like a value type instead of a reference type; but note that in js, string is an immutable, so ref vs value doesn't really matter
if we were to change default value to
""
, this could be done using something similar to nim-lang#16606 (adapting it for string instead of BigInt)related links
Uint8Array
typed arrays #483cstring("") != nil
fails at CT;isNil
sometimes returns false for nil cstring nim-lang/Nim#15730The text was updated successfully, but these errors were encountered: