Re:Yoda Conditions
by dbaupp on Friday February 17, 2017 @01:21PM
(#13670435)
Declaration and a (mutating) assignment are different: your example demonstrates that Perl signals the declaration with `my`, and other languages offer similar things like `if let ... = ... { ... }`
[ Parent
| on HN ]
> Declaration and a (mutating) assignment are different
Yes, that's what I was trying to get at by saying definition, but not very clearly. It's one of the reasons I prefer languages to require and clearly indicate variable declaration in most cases.