Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "and is joined by the new < > variant for literal strings."

... why? What was wrong with {} or [] , as most other languages do? Sigh.



The postcircumfix {} is still there, and used. It just unambiguously takes an expression, and doesn't try to intuit string quotes in some cases. So you use {} for indexing with a general expression, and <> for string indexing.


I dunno, this sounds like syntactic bloat to me.


Welcome to perl




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: