Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
spider-mario
84 days ago
|
parent
|
context
|
favorite
| on:
LuaJIT 3.0 proposed syntax extensions
Same in Perl, hence the good old pattern:
open my $fh, '<', 'input.txt' or die;
codesnik
84 days ago
[–]
yes, ruby inherited this from perl, though 'or' has lower precedence than 'and' in perl, and they're equal in ruby. Which sounds like something going to cause mistakes, but I yet to see 'and' and 'or' together in the same expression in ruby.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: