Hacker News new | ask | show | jobs
by jfengel 79 days ago
Any time I see code in quotes I get the heebie jeebies. Code in quotes can't even be syntax checked until run time.
1 comments

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.