Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
therealdtscode's comments
login
therealdtscode
on June 7, 2015
|
parent
|
context
[–]
| on:
The Crystal Programming Language
I wouldn't really say they are optional. The two do different things. (int) foo (or (int)(foo)) is a c-style cast. int(foo) isn't a cast. Instead it invokes the int constructor with the argument foo.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: