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
Luvit 2.x's json module provides the functions stringify() and parse() as aliases to the encode() and decode() functions. Node.js's querystring module does the same (technically, the latter are aliases for the former), but Luvit's querystring function only defines stringify() and parse(). Luvit 3.0 would be a good time and place to decide what to name json's and querystring's functions - whether to provide both sets, or just one.
The text was updated successfully, but these errors were encountered:
If I am to throw in my two cents, I personally prefer only having encode()/decode() - their names are similar and obvious, and the lack of aliases reduces confusion.
Luvit 2.x's
json
module provides the functionsstringify()
andparse()
as aliases to theencode()
anddecode()
functions. Node.js'squerystring
module does the same (technically, the latter are aliases for the former), but Luvit'squerystring
function only definesstringify()
andparse()
. Luvit 3.0 would be a good time and place to decide what to namejson
's andquerystring
's functions - whether to provide both sets, or just one.The text was updated successfully, but these errors were encountered: