Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is still possible to make such small structure with URLON

  URLON.stringify({c: 'instance', a: 1}) == '_c=instance&a:1'
We also benefit from the typing: 1 is a number an not a string :)


@adeelk: 1, the number, is converted to :1, but "1", the string, is converted to =1. This way I can tell whether it's a string or number upon reconstruction.

You can actually run this on the blog page URLON.stringify({c: 'instance', a: '1'}) == '_c=instance&a:1' It will return false


But

    URLON.stringify({c: 'instance', a: '1'}) == '_c=instance&a:1'
as well, right?




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: