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

Any time I see code in quotes I get the heebie jeebies. Code in quotes can't even be syntax checked until run time.


What you probably saw isn't code in quotes, but simply matchers like `price: "isPresent()"`. The () is there to signal it's a matcher, not a value. If this matcher doesn't exist, you'll get an error. The reason I chose () to signal it's a matcher is to distinguish it from values. Maybe there's a better way to do it.




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

Search: