2 ms·
None of your examples make sense to me. You say "explicitly passing self is lame" and then praise Golang for "feature restraint" when it does the exact same th
by pcwalton 11y ago
None of your examples make sense to me.
You say "explicitly passing self is lame" and then praise Golang for "feature restraint" when it does the exact same thing.
I don't know what "pattern matching on type constructors" means. You use the constructor syntax to pattern match in Rust.
There is no such thing as "block syntax with where clause". Where clauses go on signatures, not blocks. This is also the exact same syntax as Swift, which you praise for "more refined syntax".
- dschiptsov 11y agoGolang is praised for attention to details and fair attempt to attain that kind of balanced mix of complementing each other features. The principles, rather idealistically, are outlined here: http://karma-engineering.com/lab/wiki/Bootstraping http://karma-engineering.com/lab/wiki/Bootstraping Pattern matching is technically almost unchanged since Standard ML, but in Haskell the syntax is refined by perfectionists (in best possible meaning of this word). Swift, obviously, trying very hard to look familiar for [Objective-]C (but not Java) programmers, and to follow the principle of less astonishment, produced much more concise syntactic choices, and the devil is in the details. BTW, if one wants to see another example of carefully crafted language, there is PLOT http://users.rcn.com/david-moon/PLOT3/ http://users.rcn.com/david-moon/PLOT3/
- pcwalton 11y agoThis is very philosophical and also entirely unresponsive to my points.