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

You generally don't verify on output, because you verified on input (especially with languages where text strings are Unicode or UTF-8 byte strings like Python3 or Rust). But it would also be a premature optimization when it does make sense to check. For expected YAML use cases I doubt it would be a measurable difference in runtime. And it has to inspect the strings in any case to correctly quote things and deal with indentation if there are newlines.



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

Search: