sunshine ( sunshine@lemmy.ml ) to Programmer Humor@lemmy.mlEnglish · 1 year agoI'm new to using Ruby and this tickled me pinklemmy.mlimagemessage-square46linkfedilinkarrow-up1166
arrow-up1166imageI'm new to using Ruby and this tickled me pinklemmy.mlsunshine ( sunshine@lemmy.ml ) to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square46linkfedilink
minus-squareOriel Jutty :hhHHHAAAH: ( barubary@infosec.exchange ) linkfedilinkarrow-up3·1 year agoDoes Ruby require the use of [] and {} there? Because those %w/%i/etc things look like custom quoting operators and at least in Perl you can use any delimiter you want: qw(a b c) is a list of strings, but so are qw+a b c+ and qw;a b c;.
minus-squareHelloRoot ( HelloRoot@lemy.lol ) linkfedilinkEnglisharrow-up3·1 year agoYes, but why? https://en.wikipedia.org/wiki/Principle_of_least_astonishment
Does Ruby require the use of
[]and{}there? Because those%w/%i/etc things look like custom quoting operators and at least in Perl you can use any delimiter you want:qw(a b c)is a list of strings, but so areqw+a b c+andqw;a b c;.Yes, but why?
https://en.wikipedia.org/wiki/Principle_of_least_astonishment