void frobnicate(bar Bar)
{
// is bar null? Who knows?
}
To get the same behavior in Helix, one would have to declare the parameter type as “Bar?”. If the parameter type is plain “Bar”, callers can still pass you a “Bar?”, but presumably you’d get an NPE at the call site and not somewhere further down the stack. <%= render @product.reviews.order(created_at: :desc).limit(5) %>
Of course this can have the opposite problem of bloated views taking forever to load, but Rails has lots of caching goodies to mitigate that. regions = [
“eu-west-1”,
+ “eu-west-2”,
]
for region in regions:
…
"you can cook better food" and "you can drastically improve your economic situation" are two very different promises (or implications) that should be held to very different standards.