other-languages

here be heresies and things we have to use for work
borkdude 2017-11-15T12:28:25.000162Z

Isn’t this problem with the spread operator not something that Rich also highlighted in his latest talk? https://jaredforsyth.com/2017/11/12/advanced-reasonreact-hider-order-components/ > Higher Order Components work in JavaScript because, in spreading the props to the child, you can “pass through” any props that the HOC doesn’t care about, but the child needs. OCaml’s type system doesn’t give us a good way to express “this component accepts any props the child does but also these other props”.

borkdude 2017-11-15T12:29:57.000244Z

Btw, I have no idea what class FetcherComponent<T> means in JavaScript… Does it have static typing and generics now?

val_waeselynck 2017-11-15T12:44:29.000342Z

@borkdude it doesn't, this might be Flow or Typescript

borkdude 2017-11-15T12:45:11.000039Z

Maybe it’s something specific that React itself adds as a syntax?

val_waeselynck 2017-11-15T12:46:49.000116Z

I don't think so, because Flow was developed at Facebook, no reason for them to have another gradual type system

borkdude 2017-11-15T13:22:52.000482Z

JSX also has angly brackets 😉

val_waeselynck 2017-11-15T14:11:02.000044Z

Yes, why miss an occasion to overload some syntax :)

☝️ 1