Re:Show HN: Fo: An experimental language which adds generics...
by symlock on Tuesday June 12, 2018 @05:41PM
(#17298316)
What do you mean?
[ Parent
| on HN ]
Re:Show HN: Fo: An experimental language which adds generics...
by jjoonathan on Tuesday June 12, 2018 @05:52PM
(#17298410)
void do_stuff(Integer[] integers) {
....
}
do_stuff(new String[]{"1", "2", "3"})
Compiler: whoops, you passed an array of strings when the API called for an array of integers.