Re:Introducing Swift
by VeejayRampay on Monday June 02, 2014 @06:45PM
(#7836984)
Ruby is simple and beautiful, isn't it? Too bad it never got the shower of money from big backers Javascript, PHP and now Swift got blessed with.
[ Parent
| on HN ]
Beauty is in the eye of the beholder, but Ruby is anything but simple. It has one of the most complicated syntaxes of any programming language in common use.
Perl and C++ are still in the lead, but with stuff like the gratuitous introduction of alternate hash syntax, new-style lambdas, etc., Ruby is catching up.
Re:Introducing Swift
by steveklabnik on Monday June 02, 2014 @09:43PM
(#7837685)
Ruby's grammar is complex, but it's object model is incredibly simple.
Re:Introducing Swift
by VeejayRampay on Tuesday June 03, 2014 @04:15AM
(#7838681)
Introduction of a new hash syntax wasn't gratuitous really. I think the point was to make up for the lack of proper keyword arguments. Now that they're available, it's true that it doesn't have a reason to stand on its own, but it does make the code more readable and concise, as does the stabby lambda syntax. Though I do agree with your point on simplicity really, the language does offer way too many ways to do the same thing sometimes.
Re:Introducing Swift
by alecthomas on Monday June 02, 2014 @09:52PM
(#7837705)
It'll never catch C++ [1]
[1] http://stackoverflow.com/questions/23980929/what-changes-int...