Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oblio
on March 3, 2021
|
parent
|
context
|
favorite
| on:
Flutter 2
Versus a sort of:
my_type = my_list | my_object
?
You can see why this is better :-)
mixmastamyk
on March 4, 2021
|
next
[–]
I'd always return a list. Makes the client code simpler.
oblio
on March 4, 2021
|
parent
|
next
[–]
You would. But not every input comes from you :-)
okamiueru
on March 3, 2021
|
prev
[–]
All I can say is that it is certainly neat :)
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
my_type = my_list | my_object
?
You can see why this is better :-)