Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andyferris
on July 17, 2023
|
parent
|
context
|
favorite
| on:
Crystal 1.9.1
You should look into the union keyword in C :)
(Basically the programmer has to figure out how discrimination works - you’re kinda on your own).
yxhuvud
on July 18, 2023
[–]
But eh, that is not the case in crystal. You are not on your own - the language knows what a variable is during runtime and you have plenty of ways to dispatch between the types.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(Basically the programmer has to figure out how discrimination works - you’re kinda on your own).