Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
crabmusket
5 months ago
|
parent
|
context
|
favorite
| on:
Why Elixir? Common misconceptions
If you're trying to hot swap a function for a version with a different type signature, how was the new code going to run successfully anyway? Unless the type signature changes aren't reflecting the runtime behaviour changes?
Muromec
5 months ago
|
next
[–]
It's a solved problem in gen server actually. Kinda. You migrate in-memory data and if something doesn't align, it restarts.
bsder
5 months ago
|
prev
[–]
You can have a tag so pattern matching can discriminate. You can have new function parameters. You can append to the end of a data structure.
All of these would nominally be considered a type signature failure.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: