3 ms·
It's interesting that you've opted to use Perl-style sigils, given the hatred many programmers experience when seeing them (pg covers it with "no swearing" in h
by SwellJoe 18y ago
It's interesting that you've opted to use Perl-style sigils, given the hatred many programmers experience when seeing them (pg covers it with "no swearing" in his arc guidelines).
I happen to like them, particularly for interpolation in strings...and strings are so much of what we do with web applications. "There are $number posts" is much more pleasant, to me, than "There are " . number . " posts". But I might be weird, and there does seem to be an aversion to them in most recent languages that have achieved popularity.
- fogus 18y agoI too like sigils for two reasons: 1) Makes str interpolation (as you mentioned) easier on the eyes. 2) I like to see, at a glance, what a variable "is doing". In Broccoli, there are only two "doings" hold values, or holding a collection of values. 3) I know I said 2, but the real reason.... it is easier to parse. ;) -m