News for hackers. Stuff that matters.
Re:GoPlus – The Go+ language for data science by wenc on Friday June 19, 2020 @09:04AM (#23574085)
Also, most data scientists presumably have some advanced math background so it's akin to reading set-builder notation (albeit with listcomps the sets are sometimes nested). Your listcomp reads:

{x : y ∈ z, x ∈ zz | y ∈ x}

If you've read enough statistics/ML papers, this becomes second nature.

Re:GoPlus – The Go+ language for data science by JNRowe on Friday June 19, 2020 @09:48AM (#23574476)
> If you've read enough statistics/ML papers, this becomes second nature.

As someone who breathes that style of notation, there is excellent support in vim and emacs for custom display for readability. Conceal syntax in vim¹(builtin for rust/help/$few_others and external such as vim-cute-python²), and pretty-mode³ in emacs. I'm sure similar things exist in other editors too, but I don't use those ;)

You don't get the exact representation in your example with the things I've mentioned, but if you're used to a more "mathy"-style they really are quite nice. YM[and taste]MV.

1. http://vimdoc.sourceforge.net/htmldoc/syntax.html#conceal

2. https://github.com/ehamberg/vim-cute-python (moresymbols branch for er… more symbols)

3. https://github.com/akatov/pretty-mode

Re:GoPlus – The Go+ language for data science by ascotan on Sunday June 21, 2020 @08:15AM (#23591596)
Interesting. I didn't know that!