ruby - What is the value in having several, equally abstract, syntactic variations for coding something? -
i reading on ruby. think nice language, bit bothered having many equivalent ways, slightly different in syntax, coding same action. example, unless conditional
statement, equivalent writing if !conditional
.
to me, not add expressive power, makes more taxing follow other people's code. there benefit missing (other catering different tastes, don't find convincing, since people don't reject language because syntactic keywords didn't match taste)?
there more examples of in every language. using example because though particularly lacking reasonable defense.
catering different tastes explanation. philosophy adapted perl , it’s known timtowtdi (there's more 1 way it).
this have advantages, example facilitates creation of rich domain-specific languages within ruby, since existing syntax constructs can combined in new, interesting ways.
but technique has many detractors, , python in particular strives opposite:
there should one-- , preferably 1 --obvious way it.
Comments
Post a Comment