Conversation

Free syntax idea: implement the common notation of an overline meaning "repeated some number of times" by writing underscores in the line above
5
8
Have you seen Racket and Coq's ... instead? I find the actual syntax rules more mysterious than Scala's underscore, but it's basically magic! (And a syntax for folds, really).
3
3
I dunno, I’m guessing it would be more likely to just be the maths notation, but I dunno. From what I’ve seen the C++ folks are pretty bad at citing their sources :/
1
Replying to and
Hardcoding base cases of fold in a language spec? Dear lord. Have they already decided to allow overloading all of those literals??? Let me say sth positive: I feared they'd just do reduce and then crash on empty lists, so this isn't the worst imaginable thing.
1
Show replies