Hacker News new | past | comments | ask | show | jobs | submit login

That's basically all mentioned in his post about the design [1] from 2011 and he seems to dismiss all these cases.

Is that reasonable? No clue, I don't write/know/do C..

1: http://www.tedunangst.com/flak/post/the-design-of-strtonum




I don't think it's reasonable. The way they implemented strtonum might match their particular use case in OpenSSH/LibreSSL. But if they want to make it a libc function and popularise it then they should concern themselves with other use cases and opinions, especially when they pick a bold name as strtonum. It's not a surprising outcome that others are reluctant to follow them and they have clashes in behaviour or naming.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: