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

Definitely as a string. Numbers aren't things that have digits. Numbers are things you do math with.


OK, that's logical. So where do we specify this without a schema? What happens if a client sends a number instead of a string to the server? Should it accept it and convert it, or return an error?




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

Search: