4 ms·
> basically rust without semicolons or the borrow checker The thread spells out OCaml as the main inspiration for Rust, and fits the "without the borrow checke
by mixedCase 5y ago
> basically rust without semicolons or the borrow checker
The thread spells out OCaml as the main inspiration for Rust, and fits the "without the borrow checker" part. Plenty of semicolons in it, however. F# offers a similar experience with fewer semi-colons, but I can't see how removing semi-colons help make the language more accessible.
- gmfawcett 5y agoReally the only mandatory semicolons in OCaml are in data structures: `let my_list = [1; 2; 3]`. In code, they can all be replaced with appropriate `let` bindings.
- antifa 5y agoSemicolons aren't a hard requirement for me, it's just an example of signaling asthetics to draw in the greater ruby/python type crowd.